codedamn

UseState functional argument

Created by Codedamn about a year ago

0

No description provided

6 Comments

    0

    Uncaught Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. getting this error on the code playground

    @namancdr

    Naman Choudhary

    @namancdr

    0

    Uncaught Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.

    @omkarkonda

    omkarkonda

    @omkarkonda

    0

    Two questions -

    1. The functional updation method is using the callback function to update the value of counter, right?
    2. If it's using the callback function, does that mean the setCounter function was a higher order function all along?
    @archiit

    Archit

    @archiit

    0

    Really amazing !!!

    @sami2071

    Sami Alvi

    @sami2071

    0

    why cannot i increment the value using counter++ in the function

    @vishal641e969a

    Vishal Singh

    @vishal641e969a

    0

    you explained the state concept in a simple way!!!!

    @akbaralihussain

    Akbar Hussain

    @akbaralihussain

Your comment