1.0.1 • Published 3 years ago
cra-template-cra-by-looscar v1.0.1
CRA Template By Oscar L.
This template aims to create a ready-to-start React project, with most of my common setup already in place.
Packages that are installed and configured withi this CRA template:
- redux
For global state handling
- react-redux
-
- redux-thunk
Handling promises in redux actions
- immutability-helper
State immutability
- formik
Easy custom forms
- yup
Works along with formik to create validation schemas
- @craco/craco
Used to create path aliases
- moment
Date utilities
- react-icons
A conglomerate for icon sets
- react-router-dom
Routing
- react-scripts
-
- react-toastify
Toastify messages
- framer-motion
Animate transitions between routes
USAGE
yarn create react-app your-app-name --template cra-by-looscar
IMPORTANT
After the app is created an before running "start", please change the following lines into the package.json file:
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
By:
"scripts": {
"start": "craco start",
"build": "craco build",
"test": "craco test",
"eject": "react-scripts eject"
},
This enables craco to do its job, registering the project path aliases.