React Redux vs Context API | Which One is Better?

  Рет қаралды 71,803

Mehul - Codedamn

Mehul - Codedamn

2 жыл бұрын

⚛️ Learn Full Stack Development: cdm.sh/fullstack
👉 Free HTML5 + CSS3 Course: cdm.sh/htmlcsscourse
👉 Free JavaScript Course: cdm.sh/jsbasicscourse
👉 Free ReactJS Course: cdm.sh/react
👉 Free NextS Course: cdm.sh/nextjsbasicscourse
💰 Refer codedamn to friends and earn $$: cdm.sh/refer
👉 Checkout codedamn on social:
Instagram: cdm.sh/ig
Twitter: cdm.sh/twt
Facebook: cdm.sh/fb
GitHub: cdm.sh/github
If you found the video valuable, please leave a like and subscribe ❤️ It helps the channel grow and helps me pumping out more such content.
👋 About Me:
Hey! I'm Mehul Mohan, a CSE'21 graduate from BITS Pilani, Goa. I started coding early in life, at the age of 13 when I created my first blog on Blogger. I am listed in Google, Microsoft, Sony, eSet, etc. Hall of Fame for reporting vulnerabilities in their systems.
🍎 I am Apple's WWDC'19 Scholar - visited San Francisco and attended WWDC.
📙 I am an author of 2 books, on JavaScript and React - cdm.sh/mehulbooks
🚀 Currently working on my own startup - codedamn.
Connect with me:
📸 Instagram: cdm.sh/mehulig
📱 Twitter: cdm.sh/mehultwitter
📝 LinkedIn: cdm.sh/mehullinkedin
📂 GitHub: cdm.sh/mehulgithub
🌎 Personal website: cdm.sh/mehulblog
💻 Start learning to code for free: cdm.sh/codedamn
🧑‍🤝‍🧑 Discord community: cdm.sh/discord
👉 HTML5 + CSS3 Tutorials: cdm.sh/htmlcssytplaylist
👉 Complete JavaScript Tutorial: cdm.sh/jstutorial
👉 Complete React Crash Course: cdm.sh/reacttutorial
👉 Next JS Tutorials: cdm.sh/nextjsytplaylist
🏷 Video Tags:
React Redux vs Context API | Which One is Better? #shorts
react tutorial
react js
learn react
react javascript
react tutorial 2021
react tutorial for beginners
reactjs tutorial
react crash course
reactjs tutorial for beginners
learn reactjs
next js
server side rendering
nextjs tutorial
next js features
react query
material ui
tailwind css
react context api
👉 Check out my other personal KZfaq channel (it is in Hindi/English mix) where I share coding tips, tricks, and hacks: cdm.sh/mehulyt

Пікірлер: 33
@JedOpeningThings
@JedOpeningThings 2 жыл бұрын
You didn’t answer your own question wtf is this
@DrMorax
@DrMorax 6 ай бұрын
If you listened you would've realized that he prefers context API because it's lighter
@farhanaditya2647
@farhanaditya2647 2 жыл бұрын
So, which one is better?
@stevereid636
@stevereid636 2 жыл бұрын
Apples and oranges! Redux and Context API serve different use cases. So the answer should be neither 😜
@oiwjefiojwweg
@oiwjefiojwweg 2 жыл бұрын
actually he doesn't know. don't ask him.
@thatsalot3577
@thatsalot3577 2 жыл бұрын
Context api is extremely flexible you can use simply with useState for simple prop drilling or useReducer and some immutable library to create your own redux from scratch.
@rohans7194
@rohans7194 Жыл бұрын
Isn’t unnecessary re-rendering happens when we use context?
@maheshguptha9796
@maheshguptha9796 2 жыл бұрын
If state changes in redux will the whole app component rerender like in the context api?
@ishraqkabir8681
@ishraqkabir8681 2 жыл бұрын
It will depend and improper usage of redux will cause the app to rerender whenever one state changes. You have to read the Documentation to know more about this
@danielchettiar5670
@danielchettiar5670 2 жыл бұрын
If you declare your reducer functions as pure ones, then yes. It'll rerender. Not pure? Then just like usestate it'll be bugged
@shuvbhowmickbestin
@shuvbhowmickbestin 6 ай бұрын
Is this Harkirat?
@stonking8939
@stonking8939 6 ай бұрын
Replacement of another library ?? Kehna kya chahtay ho ????!
@rohans7194
@rohans7194 Жыл бұрын
What about unnecessary re-rendering with Context API? How to avoid it?
@codewithpranoy
@codewithpranoy Жыл бұрын
Remove strict mode
@madman-uw9ii
@madman-uw9ii 9 ай бұрын
I am analysis about . Can you help me out . Is there any blog about it or react does?
@whoman7930
@whoman7930 2 жыл бұрын
??? kya tha ye?
@prathameshmali3888
@prathameshmali3888 2 жыл бұрын
He's talking about state management in react application. Previously redux is the go to option for state management for big application, Its a third party library. But in recent years react team introduced context API which takes care of global state management just like redux. He's comparing them.
@stevereid636
@stevereid636 2 жыл бұрын
But should they be compared? They serve differing use cases.
@niklausmikaelson7332
@niklausmikaelson7332 2 жыл бұрын
Is there any redux tutorial of you
@varinderpalsingh7281
@varinderpalsingh7281 2 жыл бұрын
But can we do data persistent after reload in context api?
@Benimation
@Benimation 2 жыл бұрын
I think that's technically separate from Context/Redux. You would use something like localStorage or IndexedDB to determine the initial value. If you use a library that does that for you (like redux-persist), you're going to have to find another library, or build it yourself.
@pavankumarv9218
@pavankumarv9218 Жыл бұрын
Even redux will reset
@siddharthjoshi3328
@siddharthjoshi3328 Жыл бұрын
Where is the answer to your own question?
@bunnytheweebster
@bunnytheweebster 8 ай бұрын
Dude he literally said it, context API at the end💀
@lakshitsagar6299
@lakshitsagar6299 2 жыл бұрын
Another library??...konsi??
@arshiagholami7611
@arshiagholami7611 2 жыл бұрын
it's not a library
@jeetsarkar1647
@jeetsarkar1647 2 жыл бұрын
Recoil ,zustand etc. You can search there are a lot
@lakshitsagar6299
@lakshitsagar6299 2 жыл бұрын
@@jeetsarkar1647 okk thanks
@user-ph2qp8fe8m
@user-ph2qp8fe8m Жыл бұрын
We cant realy compare them
@user-ph2qp8fe8m
@user-ph2qp8fe8m Жыл бұрын
but redux is harder than
@yashagrawal3367
@yashagrawal3367 2 жыл бұрын
views on recoil
@dhansb883
@dhansb883 2 жыл бұрын
Zustand?
@stevereid636
@stevereid636 2 жыл бұрын
I like Recoil. I reach for it when I’m doing data visualisation.
99% React Developers Fail to Answer THIS Question!
8:56
Mehul - Codedamn
Рет қаралды 101 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 168 М.
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 34 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 149 МЛН
КОМПОТ В СОЛО
00:16
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 28 МЛН
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 928 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 539 М.
Redux or Context in React
6:16
Ben Awad
Рет қаралды 98 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 556 М.
Next.js isn't React
17:11
JavaScript Mastery
Рет қаралды 205 М.
You don’t need this in React.js
16:36
Mehul - Codedamn
Рет қаралды 9 М.
10 React Antipatterns to Avoid - Code This, Not That!
8:55
Fireship
Рет қаралды 728 М.
100% React Developers Failed to Answer THIS Question AGAIN!
18:08
Mehul - Codedamn
Рет қаралды 15 М.
Context API in react | get the concept
29:00
Hitesh Choudhary
Рет қаралды 47 М.
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 34 МЛН