Javascript – Using setState inside of the useEffect is causing a Maximum Update dept exceeded error in testing
I have a function that takes a props value in a component and flattens it into a form the component can use. This needs to happen every time the props value changes. I put the setState in a useEffect with…