My Logo
Custom Hook - useArray
001

Creating my own React Hook to manipulate an array.

My useArray hook is built using a number of useCallback hooks to manipulate the state of the array.

1, 2, 3
Custom Hook - useArray

About this project

  • The useRef Hook allows me to reference the inputs on these forms to populate the error messages.
  • Using ternary operators, if there are more than 1 errors, they will display under the email and password inputs.
  • Concepts used

  • Custom React Hook
  • Array Manipulation
  • useCallback Hook