Тёмный

#28: Why the state value does not reset to its initial value on re-render? Know the Real Reason🔥 

Thapa Technical
Подписаться 672 тыс.
Просмотров 1,4 тыс.
50% 1

Discover why the state value in React doesn't reset to its initial value upon re-rendering. Understand the underlying reasons and how it affects your React applications.
👉 Source code & PPT access Free: github.com/thapatechnical/rea...
👉 Here is the Complete Playlist: • React 19 Tutorials in ...
-------------------------------------------------------------------------
Videos to Watch before learning ReactJS 👇
🔥🚀 Watch Best HTML Course 👉 • HTML Complete Tutorial...
🔥🚀 Watch Best CSS Course 👉 • Complete CSS Tutorial ...
⭐️ JavaScript Basics Course Part 1: • JavaScript Full Course...
⭐️ JavaScript Advanced Course Part 2: • JavaScript Advanced fu...
-------------------------------------------------------
👉 Source code & PPT access Free: www.thapatechnical.com/2024/0...
👉 Watch React.js History in 10min: • React.js History in 10...
📢Get all my RU-vid Videos Source Code at only 199₹ : thapatechnical.shop/source-code
📢Get your premium complete ecommerce website source code at no cost (Free) :👉www.thapatechnical.com/2024/0...
-----------------------------------------------------
✌️ Become Member, get access to perks, free Source code, & more..
/ @thapatechnical
🚀 Check my Instagram to Connect with me: / thapatechnical
🗨️ Discord Server Link for Programmer to Hangout: / discord
-----------------------------------------------------
*Timeline:*
0:00 - Introduction to React Series
0:20 - Understanding the React Counter Code
1:10 - Reason Why State Not Resetting on Re-Render
6:55 - Outro

Опубликовано:

 

28 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@ThapaTechnical
@ThapaTechnical 7 дней назад
👉 Source code & PPT access Free: github.com/thapatechnical/react-19-series-thapa-technical 👉 Here is the Complete Playlist: ru-vid.com/group/PLwGdqUZWnOp1Rab71vx2zMF6qpwGDB2Z1
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 7 дней назад
Interesting
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 7 дней назад
2 Video daily... Please
@Amaankhan-qj9rk
@Amaankhan-qj9rk 16 часов назад
sir ppt is not avalable on github
@verifiedbelieber719
@verifiedbelieber719 5 дней назад
Watched a lot of react tutorials on youtube but noone ever explained this point. Thapa is expaining each snd evry details. This video deserves the caption world best react series.
@vivekbhati9192
@vivekbhati9192 6 дней назад
Nice video and In short - React does not call useState while updating the state. UseState get called only on mounting not on updating. For update life cycle we have setState.
@sanjibchanda21
@sanjibchanda21 7 дней назад
Most effective sir
@Fnydo
@Fnydo 7 дней назад
Nice explanation ❤
@user-vz4ry8ei1n
@user-vz4ry8ei1n 7 дней назад
Bro u are awesome continue the series guy😂
@informativechannel2928
@informativechannel2928 7 дней назад
Big Fan sir... Kindly material UI or react dono peh project banayein
@iamMZ255
@iamMZ255 7 дней назад
Awesome
@aimalkhan4518
@aimalkhan4518 5 дней назад
Thanks Sir👍
@ajiteshmishra0005
@ajiteshmishra0005 6 дней назад
How are you using components in console window??? Can you tell us what command we have to use to check as you are checking UI.
@pxycknomdictator4483
@pxycknomdictator4483 7 дней назад
Thanks
@hamudxd9497
@hamudxd9497 7 дней назад
GOOD JOB❤
@Govind_thakur99
@Govind_thakur99 7 дней назад
Nice sir ❤
@ajaydalal199
@ajaydalal199 7 дней назад
Nice video bro
@knowledgeera4492
@knowledgeera4492 6 дней назад
bhai sare hook ka funda clear karouge kya ?
@prasadbagul2146
@prasadbagul2146 7 дней назад
Sir Redux Thunk Full Course In Hindi Please
@Robennhood
@Robennhood 7 дней назад
Api base project
@aditya-d-
@aditya-d- 7 дней назад
aysa saval hamne khabhi nahi saocha
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 7 дней назад
😅
@xyonxyt9170
@xyonxyt9170 7 дней назад
vai actually ham jo react documentation se sikhe he udhar aisey hi sikhaya gaya hai ki first click pe state change hota hai 0 to 1 then initial change ho gya aur is time pe prir se click karnese previous bala hi inertial count hua hai aur oske badh 1+1 = 2 ho jata hai
@aditya-d-
@aditya-d- 7 дней назад
@@xyonxyt9170 actual truth
@knowledgeera4492
@knowledgeera4492 6 дней назад
bhai sabhi hook shikha na please mai apke sath start se hu
@Aeshgoswami
@Aeshgoswami 7 дней назад
Bro is this react is full course for beginners ????
@skgamer2.027
@skgamer2.027 7 дней назад
yes
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 7 дней назад
100%
@Aeshgoswami
@Aeshgoswami 7 дней назад
npm error } npm error npm error The operation was rejected by your operating system. npm error It's possible that the file was already in use (by a text editor or antivirus), npm error or that you lack permissions to access it. npm error npm error If you believe this might be a permissions issue, please double-check the npm error permissions of the file and its containing directories, or try running I got this error after installing bun
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 7 дней назад
Chat GPT se solve krwa lo
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 7 дней назад
Npm hi use kro.. Bun nhi
@karanveersingh8812
@karanveersingh8812 День назад
Its much harder to understand this in functional components as they see that there is a line of code written then why doesn't it affects ? Actually the best way to show this could be using class components or via a diagram that how it works. There is one more way (just for understanding) that the hook name is useState not createState (even though hook names always start with 'use') but still with it you can imagine. Someone could imagine useState means I want to use a state, If this state already exists, give me its value or create it with the initial value I passed in.
@karanveersingh8812
@karanveersingh8812 День назад
Even though video is good, still I would like to mention a point. He said the initial value is used only for the first time and he is right upto some extent but not always true. If the component is removed from tree, its state is deleted as well. So when it again is added to tree, it will use the initial value. You could create an example using a simple switch/checkbox which will ONLY render the counter component when its checked i.e render conditionally. I am NOT saying about hiding and showing the component using styling, but actually rendering conditionally
Далее
This VS Code Extension Is 🔥🔥
0:47
Просмотров 1,4 млн
#1 Create a Simple Login Screen in React Native
5:15
Jensen Huang at the ServiceNow Knowledge24 Keynote
11:30
Is PHP really that slow?
0:53
Просмотров 105 тыс.
HLS Adaptive Bitrate Streaming - System Design
36:09
Просмотров 17 тыс.