- This project was bootstrapped with Create React App
Clone the project
git clone https://github.com/codeincrypt/react-redux.git
Go to the project directory
cd react-redux
Install dependencies
npm install
Start the server
npm run start
To deploy this project run
npm run build
- react-redux
- redux-thunk
- react-router-dom
We have created a blog for Redux in React JS, now we will implement a redux-thunk middleware in this project.
Redux-thunk is not alternate of Redux, but it extends Redux functionality and works as middleware by which we can keep our reducer code clean from API calls and once we get API response we can easily dispatch our event
We use package redux-thunk and add thunk as middleware in createStore.
If you have any feedback, please reach out to us at kartikkr555@gmail.com