Simplify react state update? – Reactjs
I'm building a simple react application and I want to update the state of a component based on certain conditions. Currently, I'm using a hardcoded solution that works, but it seems too complicated and I want to know if there…