Basic React Redux structures to get front-end apps off the ground.
This repository includes the following technology:
git clone https://github.com/andynoelker/react-redux-boilerplate
Change the name of the newly cloned project from react-redux-boilerplate
to whatever your new front-end app name will be.
Open webpack.config.js
in the containing main front-end project.
Add an entry point that comes from your new project:
entry: {
new_project: './new_project/src/index.js'
}
Add the project directory to the module loaders include
whitelist:
include: [
path.resolve(__dirname, 'new_project'),
],
When you include the bundled project file in a page, that page needs to have a div
element with an ID for rendering the app. Add the ID of that div
to index.js
:
ReactDOM.render(
<App />,
document.getElementById('new_project_id')
);