DEV Community

Discussion on: 5 tips to improve your React and JS code

Collapse
 
mjnlonzame profile image
mjnlonzame

Hello, user.flag is not a state

Collapse
 
seanmclem profile image
Seanmclem

User is. So isn't user.flag? It's on the user object created with usestate