DEV Community

Discussion on: Unexpected Behavior of React DOM Modification

Collapse
 
wclayferguson profile image
Clay Ferguson

Your onRemove never updates the state right? Also useEffect normally should be using an existing state and not setting state.