BFE.dev
buy us
a coffee
CompanyListsDiscuss
buy us
a coffee
React Coding Questions5. usePrevious()

5. usePrevious()

ReactHooks
Share

  - accepted / - tried

Create a hook usePrevious() to return the previous value, with initial value of `undefined.

prevnext

Think about the edge cases.

(29)

Try it out

Console