React App
Loading a dynamic react frontend
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/ajcastiglione/wpe-plans-block/archive/refs/heads/master.zipGutenberg with custom react app
How it works
- Create a
webpack.config.jsfile and extend the default config to add a new entry point:client: './src/client.js' - Inside blocks.json, specify the new client script using the keyword:
"script"and point to output of the build file:"file:./build/client.js" - The new
client.jsfile must live within the src folder - The frontend react app can live within the
srcdirectory and structured as you see fit