How to add loading state in React while useEffect is processing synchronously – Reactjs
I've got an app with 2 values that user can change stored as state. When they're changed I do some processing in useEffect and also store output of this processing in state and render it. At this point everything is…