An opiniated template to set up a React project.
- HTML with appropriate SEO tags
- React Router v6
- Meyer CSS Reset
- CSS modules
- Useful packages such as
uniqid
Clone project:
git clone [email protected]:creme332/cra-template.git⚠ If you are placing this project in another Git project .git folder, delete the .git folder in this project to prevent interference.
Update/delete the LICENSE file as well.
In package.json, update project name, description and homepage.
Install dependencies:
npm installIMPORTANT : If your app is served from a sub-directory on your server, you’ll want to set basename in RouteSwitch.js to the sub-directory. A properly formatted basename should have a leading slash, but no trailing slash.
Run project.
Generate production build.
Run Jest tests.
- Write tests using Jest
- Create RouteSwitch file, add nav bar, fill home page file
- Generate production build
- Use pageInsight to test website after deployment.
