Stateful React components
Created by Codedamn about a year ago
No description provided
10 Comments
Bro, I did not understand.
What do you mean by next render?
useSate is fun that returns value in array form //we define our own useState function. As we already know, the //useState function takes the initialState as an argument: function useState(a) { //we define a value, where we will store our state. At first, this value will be set to let state = a; //we define the setState function, where we will set the value to something different, function setState(update) { state = update; } return [state,setState] }
function useState(a) { let state = a; function setState(update) { state = update; } return [state,setState] }
Would suggest simplifying the explanation ... currently not easy to grasp
Never came across a mentor who explains React state in a such an easy way!
First things first! All explanations are great about JavaScript and React.
Course name says it is a react 18 course. Only one video is about to React 18. It's so confusing for newcomers like me.
awesome video bro , was wondering how to increase the counter on every click?
awesome explanation
Awesome concept