Redux Toolkit #11: Maximizing Code Reuse with Redux Toolkit's createAction Function

preview_player
Показать описание
Welcome, In this tutorial, you'll learn how to use createAction in Redux Toolkit to simplify your action creation process. Redux Toolkit's createAction function allows you to quickly create actions that are optimized for common Redux patterns, reducing boilerplate and making your code more maintainable.

We'll walk through how to use createAction, how to pass payloads, and how to handle errors in your actions. Whether you're a beginner or an experienced Redux developer, this tutorial will provide valuable insights into how to make your code more efficient and scalable

😊 Become a Member, and get access to perks, free Source code, & more..

------------TIMELINE-----------
0:00 Introduction
0:35 createAction function
1:30 how to use createAction
3:10 import actions & add in extraReducer
5:35 use action type
6:50 pros of createAction
7:25 Thanks you

************* 😍 Must Watch Videos For Web Development 😍 *************

Рекомендации по теме
Комментарии
Автор


😊 Become a Member, and get access to perks, free Source code, & more..


ThapaTechnical
Автор

Sir app extraReducers smjhate waqt thoda aalas dikhagaye, aapko ek new slice add krke smjhate toh better smj aata, but koi nhi, you're awesome sir.

nishant.
Автор

You are the best, sir, for providing the most comprehensive explanations on the internet. Love from Afghanistan.

wahidullah-karimi
Автор

Thank you so much Sir, it was really helpful

malikfaizan
Автор

Nice Series. Please explain extraReducers with pending, success, failed types and cover asyncThunk topic.

lahushelar
Автор

you r great !!!
i like how you teach with definitions. I really admire you.

AdityaAdhikari-dhpl
Автор

Ekdum jabardast and knowledge gaining series thanks bhaii❤

PrasadBirajdar-wo
Автор

Best series on react redux, crystal clear

sanskarjain
Автор

You are awesome. Really Great Explanation (Y)

ranjeetwebdeveloper
Автор

Thank you so much for this amazing content ❤

nodeguru
Автор

Awesome redux series on youtube, please make also video on redux thunk middle ware ❤🎉🎉

ajaykumar-nxkb
Автор

Now I am able pass data to any component thanks 🙏

nayanchauhan
Автор

Why u will not cover handle async requests ???

rahulshrivastav
Автор

if we use this clearAllUsers function or dispatch it from different locations from users and admin component both having same import export then, then What would happen ? it will execute for all slice or not ?
(Because it is included in all slices Please answer this ?)

Rohitsoni-dvlw
Автор

Amazing series ❤. This playlist made my understanding very clear about react redux. Earlier i used to confuse a lot. Thanks Bro❤❤

Chachavimdhayak
Автор

sir big big fan AP sa aik request ha AP react full simple project ki aik series bna da video 10 mint sa ziyada na ho koshisi kriya ga 🥰🥰🥰

XCrypto
Автор

sorce code pura nahi h bhaiii provide me link jo pura project aapne bnayea hai is playlist mein

dilpavittarpalsingh
Автор

But, we will have to write that extraReducer code in every slice wherever needed, so why can't we write reducer directly in every slice? what is the need of writing extraReducer.

JohnDoe-qgn
Автор

I created a separate Admin component just Like UserDetails with its own Clear Button. I was trying to pass the same micro-reducer (clearAllUsers) as an action to both UserDetails and Admin but the Clear button now deletes all the entries in both the components irrespective of which component's clear button was clicked.

samking