This is an Ract APP boilerplate based on CRA using Material UI
This boilerplate uses create-react-app
. You can Download the newest release or clone the repository:
npm install -g create-react-app # If you don't have it installed
git clone [email protected]:maxjf1/react-material-boilerplate.git my-project
cd my-project
yarn install
rm -rf .git # To remove boilerplate git reference
Now you can change :
package.json
project name and GitHub pages URL- Project Settings such as Material UI theme colors and settings
- The Manifest File and Index Page (for Project title, name, meta tags and theme colors to math project settings).
After setup, you can start the project
npm start
to deploy the project to GitHub Pages, run:
npm run deploy
You can check an demo at https://maxjf1.github.io/react-material-boilerplate/.
This boilerplate setup an project to use Material UI and adds some reusable components
The default SW register was modified to an JS Class. This is useful for reusing the instance.
The UpdateHandler component receives the SWRegister and listen for installing and updates. It will automatically show an Snackbar giving feedback for the user.
The Header is a basic Material UI AppBar with some aditional features