React Redux Thunk Axios Example in Hindi [ LOGIN API with REDUX ]

Опубликовано: 06 Май 2022
на канале: SAIFI CODE
1,439
25

In this video we have discussed following topics :
1.React Redux Thunk with Axios and with Hooks in Hindi
2.how to make redux thunk post request in react js


Chapters :
0:00 - Intro
3:05 - Adding Redux Thunk middleware on store.js
4:19 - Create an api call function at login Reducer
8:48 - Creating global state to store api result and handle actions type and payloads
14:42 - Dispatching handleApi function ( in sync redux we dispatch actions not functions )
24:19 - Checking global state is updated by api call or not
26:12 - Redirecting to home page after login success
29:47 - Removing thunk middleware from store
30:17 - Get the error - Actions must be plain objects not functions (without thunk)

Note - we can not dispatch functions without thunk middleware.
If we want to use api calls in redux , we need to use middlewares like redux thunk or redux saga

React Redux Without Thunk ( BASICS ) :
   • React Redux Tutorial for Beginners in...  

React forms and API call in react js :
   • API Call In React JS using Axios ⬆️ [...  

Routing in React js :
   • Routing in React JS in Hindi - IMPORT...  

Login Logout in React js :
   • Login Logout in React JS - 2022 ✅ [ R...   MY GITHUB LINK ---- https://github.com/NaimuddinNaimuddin