Next: Advanced Boilerplate, Up: React Development Workflow [Index]
To keep focus on learning the React library, a React app boilerplate pack is provided with this book. The boilerplate project comes with all the basic files and configurations needed to start developing immediately.
After downloading it, all you have to do is
npm install
npm start.
This boilerplate is purposefully simple to show the minimal setup needed to create React projects with Webpack and Babel. It aims to be a starting point for learning React, with low cognitive load and as such avoids having many separate config files and advanced configuration options, while providing a solid foundation for new React projects.
git clone git@github.com:pro-react/react-app-boilerplate.git
cd react-app-boilerplate
npm install
npm start
public
folder,
app
folder.
npm run build
bundle.js
file on the public
folder.
This boilerplate focuses solely on transforming and bundling javascript files—all other static files are served directly from the public folder without any processing.
While useful for learning React, this setup doesn’t use Webpack and Babel in their full capabilities—which include
Next: Advanced Boilerplate, Up: React Development Workflow [Index]