DEV Community

loading...

Discussion on: Testing React Hook State Changes

Collapse
theactualgivens profile image
Andrew Givens Author

My recommendation for testing the initial state would just be test that React.useState is called with your initial state value.

Forem Open with the Forem app