In this crash course, we will learn how to fetch data using Redux Toolkit in React. createAsyncThunk a function that accepts a Redux action type string and a callback function that returns a promise. Action types include pending, fulfilled and rejected. Let’s go!
Hostinger Anniversary Deal ➜ https://bit.ly/3z6Ahvq
⭐ Get a Free .COM domain with Premium Plan for 12+ months. Free SSL and Cloudflare included
🔔 SUBSCRIBE for more:
http://bit.ly/Subscribe-Hong-Ly
💻 Source code:
https://github.com/lyhd/react-redux-toolkit
🔗 Related crash courses:
React Redux: https://youtu.be/RPFr-hiFiU0
React Redux Saga: https://youtu.be/6GvMQ0vMXQU
React Redux Thunk: https://youtu.be/lSSQ1r8zgtY
ℹ️ References:
https://redux-toolkit.js.org/
🔥 Useful:
► Hostinger web hosting for your mission: https://www.hostg.xyz/SH5yf
► Bluehost build and grow your website without breaking a sweat: https://www.bluehost.com/track/hongly/
► Namecheap bring your ideas to life: https://honglytech.com/namecheap
► Squarespace everything you need to grow online: https://squarespace.syuh.net/bW9KB
► Wix create a website you’re proud of: https://wixstats.com/?a=37210&c=2611&s1=hongly
🌐 Website: https://honglytech.com
📂 GitHub: https://github.com/lyhd
⭐ My course: https://honglytech.com/course
💼 Business inquiries:
E-mail: contact@honglytech.com
❤️ Support the channel:
https://ko-fi.com/hongly
🌎 Find me on:
Facebook: https://www.facebook.com/honglytech
Instagram: https://www.instagram.com/hongly_tech
Twitter: https://twitter.com/honglytech
Discord: https://discord.gg/B4CfnAR8Fr
🎬 My gear:
Camera (Canon PowerShot G7 X Mark II): https://amzn.to/3ddGNHL
Microphone (FIFINE K669B): https://amzn.to/3qotmKa
🕒 Timestamps:
00:00 Intro
00:17 Refresh memory
02:38 Install Redux Toolkit
03:03 usersSlice using createAsyncThunk
11:30 Create store
14:31 Display users
#redux #reduxtoolkit #reactjs
⚠️ Disclaimer:
Some of the links and other products that appear on this video are from companies for which Hong Ly will earn an affiliate commission or referral bonus. Hong Ly is part of an affiliate network and receives compensation for sending traffic to partner sites. The content in this video is accurate as of the posting date. Some of the offers mentioned may no longer be available.
#react #redux