Skip to content

useReferesh example is not valid. Why do we even need it in this case which is shown in the example.  #62

Description

@yadavseetaram

Here is the sandbox example of mine where I have achieved the same without using either useReferesh and useEffect.

https://codesandbox.io/s/affectionate-carlos-bc2qe?file=/src/App.js

It will work because whenever we change any sate using useState in function component or this.setState in-class component react update rerender the component automatically.
Screenshot 2021-12-17 at 11 41 51 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions