Reactjs – This is a safe strategy for aligned states in React?
I'm building a hook for data ordering, and it can receive state and setState from outside, defined by the user, but if they are not passed, I use an internal useState declaration. But is this approach recommended? As follows: export…