DEV Community

Discussion on: Testing React Hook State Changes

Collapse
 
theactualgivens profile image
Andrew Givens

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