Open masakudamatsu opened 3 years ago
See https://github.com/kentcdodds/react-fundamentals/blob/main/src/final/06.extra-2.js
In particular, see how the error state is updated as null or the error message string, depending on the error status.
See https://github.com/kentcdodds/react-fundamentals/blob/main/src/final/06.extra-2.js
In particular, see how the error state is updated as null or the error message string, depending on the error status.