You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the props change, the component will automatically re-render, so setting state to props is not typically necessary.
Also, if you do need to do this (or something similar), and every state is related to an object, then consider just doing a single set state, i.e. instead of
ProjectCatwalk/client/src/components/Reviews/ReviewList/ReviewListItem.jsx
Line 94 in e899a92
When the props change, the component will automatically re-render, so setting state to props is not typically necessary.
Also, if you do need to do this (or something similar), and every state is related to an object, then consider just doing a single set state, i.e. instead of
You can do something like
The text was updated successfully, but these errors were encountered: