- clone the template to your local machine
- Make sure you are in the root project directory inside
react_redux_templatefolder - Change the name in line
"name": "react_reduxtemplate"inpackage.json - run the following command
npm installto download the node_modules folder, which include all the packages included in thepackage.jsonfile - run
npm startto see if the react app is working or not - run
npx eslint "**/*.{js,jsx}"to test eslint package, it should work smoothly - run
npx stylelint "**/*.{css,scss}"to test stylelint package. - You are all set. Now you can use this Template for any react project.
- You can edit the
READMETEMPLATE.mdto suit your project
- always add directories into src folder
- Don't mess with the the
index.jsfile in the main Directory - to use Sass for styling:
- open new git-bash terminal in VSC terminal window
- change your directory to
React_ReduxTemplate/src/styles - activate sass by
sass --watch Sass:Css - create any sass file and it will be automatically created on css on the Css folder
- you will use the css files in your JS or JSX file
- Geekyhacksgit
