mediumReact
Create usePrevious Hook
Build a custom hook that stores and returns the previous state value.
Ensure function signatures match starter code to run test cases.
index.js
Loading...
Test Case #1
Input: state change
Expected: returns previous value