This app works best with JavaScript enabled.
Which React Hook Should I Use?
I want to:
Persist data across re-renders
Create a function to be used within a component
Provide data and functions to different parts of a component hierarchy
Perform an action due to data change
Perform an action when a component renders/re-renders
Perform an action when a component mounts/unmounts
Hooks documentation