codedamn

Stateful React components

Created by Codedamn about a year ago

0

No description provided

10 Comments

    0

    Bro, I did not understand.

    0

    What do you mean by next render?

    @ltchitts

    Chitresh Kaushik

    @ltchitts

    0

    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] }

    @hashim475

    Muhammad Hashim

    @hashim475

    0

    function useState(a) { let state = a; function setState(update) { state = update; } return [state,setState] }

    @hashim475

    Muhammad Hashim

    @hashim475

    0

    Would suggest simplifying the explanation ... currently not easy to grasp

    @manojr1234

    Manoj Raghavan

    @manojr1234

    1

    Never came across a mentor who explains React state in a such an easy way!

    @mikayil0000

    Mikayil

    @mikayil0000

    1

    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.

    @tko

    tugce

    @tko

    0

    awesome video bro , was wondering how to increase the counter on every click?

    @tanmayhedau

    Tanmay Hedau

    @tanmayhedau

    2

    awesome explanation

    @lekhwar

    Lekhwar Shubham

    @lekhwar

    0

    Awesome concept

    @louiswords

    Lo Uis

    @louiswords

Your comment