0.1.0 • Published 4 years ago
rrredux-thunk-cra v0.1.0
A React + Router + Redux (with thunk) + CSS (CRA) Boilerplate
- Clone the project
git clone https://github.com/entrepaman/rrredux-thunk-cra.git
- Run
yarn
to download all dependencies - Run
yarn start
to start the project on http://localhost:3000
Struture
📦public
┣ 📜index.html
┗ 📜robots.txt
📦src
┣ 📂store
┃ ┣ 📂reducers
┃ ┃ ┣ 📜auth.js - Used for demo, Change as per ur use case
┃ ┃ ┗ 📜index.js - contains combineReducer
┃ ┗ 📜index.js - creates store using createStore from redux & thunk is applied as middleware
┣ 📂views
┃ ┗ 📂Home
┃ ┃ ┗ 📜index.js - Demo Home component connected with Redux and userId is printed in console for demo.
┣ 📜App.css
┣ 📜App.js - App with React Router Setup and Root Component to Home
┣ 📜index.css
┣ 📜index.js - Import App and Wrap the App around Provider from react-redux
┣ 📜.gitignore
┣ 📜package.json
┣ 📜README.md
Versions - package.json
- react: 16.13.1,
- react-redux: 7.2.1,
- react-router-dom: 5.2.0,
- redux: 4.0.5,
- redux-thunk: 2.3.0
- thunk: 0.0.1
Test files are removed from the project. Create test directory as per your need.
0.1.0
4 years ago