React JS Tutorial for Beginners | Life Cycle Methods

  Рет қаралды 1,522

Web Tech Talk

Web Tech Talk

Күн бұрын

Пікірлер: 12
@FootballTalkersWGS
@FootballTalkersWGS Жыл бұрын
Keep going
@WebTechTalk
@WebTechTalk Жыл бұрын
Thank you
@knecks7374
@knecks7374 8 ай бұрын
Do these methods still find use in modern react?
@WebTechTalk
@WebTechTalk 8 ай бұрын
Nowadays react developers are using functional hooks. In older applications only these component lifecycle methods were used. Also I am out of React for more than a year and so I am not sure whether component lifecycle methods are still in use. I didn't explore the recent versions of react.
@knecks7374
@knecks7374 8 ай бұрын
@@WebTechTalk oh ok , thanks for replying. Nowadays usage of hooks is preferred over everything else. These component lifecycle methods can come in use in some really specific instances.
@WebTechTalk
@WebTechTalk 8 ай бұрын
@@knecks7374 Even Angular is also moving towards functional
@karthikrachamadugu5275
@karthikrachamadugu5275 Жыл бұрын
ComponentDidMount(run only once before DOM print to screen)==ngOninit ComponentWillUnmount==ngOndestroy ComponentDidUpdate(runs for every update)==? ShouldComonentUpdate(true-compinent update,false-component won't update)==? Is my understanding correct sir . What is angular equivalent of didUpdate and ShouldComonentUpdate?
@WebTechTalk
@WebTechTalk Жыл бұрын
You can't directly compare the lifecycle methods bro. But as you have already related, you can think of DidUpdate as change detection in angular. So, you can relate to DoCheck. But not completely. DoCheck runs for every change detection. But DidUpdate runs only when there is a change in props or state. Should component update is a react specific lifecycle to decide whether to run DidUpdate or not.
@karthikrachamadugu5275
@karthikrachamadugu5275 Жыл бұрын
@@WebTechTalk great explanation sir
@karthikrachamadugu5275
@karthikrachamadugu5275 Жыл бұрын
@@WebTechTalk 1)then what about ngAgterView Init,initChecked,contentInit,content Checked-how do we implement those in React 2) Directives,pipes all are not available how they implement it in React
@WebTechTalk
@WebTechTalk Жыл бұрын
@@karthikrachamadugu5275 Don't confuse Angular with React bro. Both are totally different.
@WebTechTalk
@WebTechTalk Жыл бұрын
@@karthikrachamadugu5275 Thank you
React JS Tutorial for Beginners | useEffect Hook
8:03
Web Tech Talk
Рет қаралды 1 М.
NVIDIA’s New AI: Stunning Voice Generator!
6:21
Two Minute Papers
Рет қаралды 89 М.
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 238 МЛН
Thank you Santa
00:13
Nadir Show
Рет қаралды 38 МЛН
useContext in depth | React JS Advanced Concepts
8:23
Web Tech Talk
Рет қаралды 848
Unboxing the Raspberry Pi CM5 Development Kit
11:36
Level 2 Jeff
Рет қаралды 38 М.
Deferrable Views in Angular 17
10:01
Web Tech Talk
Рет қаралды 2,2 М.
Angular 18 New Feature: @let directive
5:35
Web Tech Talk
Рет қаралды 1,4 М.
useEffect in depth | React JS Advanced Concepts
10:09
Web Tech Talk
Рет қаралды 346
Angular 18 New Feature: redirectTo function
5:36
Web Tech Talk
Рет қаралды 1,5 М.
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59