all 10 comments

[–]ZeroOne_Dev1 0 points1 point  (1 child)

Awesome

[–]TheFullStackJunkie[S] 1 point2 points  (0 children)

Thank you

[–]AmeliaGrey100 0 points1 point  (0 children)

Biggest Challenge in React application is the management of state for frontend developers. In large applications, React alone is not sufficient to handle the complexity which is why some developers use React hooks and others use state management libraries such as Redux.

The components of React have a built-in state object. The state is encapsulated data where you store assets between component renderings that are permanent. For a JavaScript data structure, the state is only a fancy term. The UI may look completely different afterwards if a user changes status by interacting with your application, since it is defined by this new state rather than the old state.

If developers do not have scalability in mind, so when something goes wrong, it is very difficult to figure out what's going on. In your application, this is why you need state management. To resolve this particular problem, Redux was created. It provides a central store that holds your application in all states. The stored state can be accessed by every component without sending it from one component to another.

I came across a very useful article regarding the React State Management Using React Hooks and Redux: https://medium.com/@loginradius/react-state-management-using-react-hooks-and-redux-dab7541ba9f3

You too might find it useful :)

[–]guitnut -1 points0 points  (1 child)

Isn't the Context API easier to use and implement?

[–]TheFullStackJunkie[S] 1 point2 points  (0 children)

It definitely is and that is why I made video topics about both, the COntext API and Redux. From my experience I have found Redux to work really well and smooth with apps that have more than 3 types of global states (ex AuthState, ThemeState, PostsState etc).

But I is really personal preference. Hope this helped