React Boilerplate
This is a React Redux boilerplate with Webpack and Hot Module Replacement configuration. It is a simple React boilerplate with features such as Redux, React Router, Hot Module Replacement, CSS Modules, and more. It also includes CSS and JavaScript linters with the AirBnB style guide and ESLint configurations. The boilerplate is built for development and can be easily prepared for production. There are plans to integrate Jest for testing and Storybook for UI development. The data layer currently uses standard fetch, but there are plans to integrate GraphQL/Apollo in a separate boilerplate.
To install the React Redux boilerplate, follow these steps:
git clone [repository-url]
npm install
npm start
To prepare the production files, run the following command:
npm run build
This will bundle and save all the needed files (javascript, css, images, html) in the public folder.
To lint the project, you can run the following command:
npm run lint
You can also use editor plugins for linting.
The React Redux boilerplate provides a ready-to-use setup for building React applications. It includes key features such as Redux, React Router, Hot Module Replacement, and CSS Modules. The boilerplate also includes linters for CSS and JavaScript, making it easier to maintain code quality. There are plans for future integrations such as Jest for testing and Storybook for UI development. Overall, this boilerplate provides a solid foundation for developing React applications.