React js is a UI library that manages its UI updates with the state changes in the components. When a developer starts using this library with simple UI updates and some business logic. Generally, most of the developers manage their business logic flow with state updates and lifecycle hooks. But they end up with state and lifecycle methods complexity.
Because of these two things(state, lifecycle methods) are implemented for UI changes and not for business logic management, so they are not the right fit for the business logic implementation with them.
So what could be the possible solutions for this problem?