codedamn

Using useState as useRef

Created by Codedamn about a year ago

0

No description provided

2 Comments

    0

    3:17 How doing so is same as a useRef object? How can we modify a state object property without the setter in react?

    Why will react keep returning the same object, instead of newly creating the object on the component re-render?

    @emayush56

    Ayush Saha

    @emayush56

    1

    how can a const variable be updated in use state function without the setter as the setter re-renders the layout at that point and its understood.But without setter how come the getter is updated that too a const getter?

    @sameet11

    Sameet Sabu

    @sameet11

Your comment