czar
@czar
Which state management solution do you use in React? What do you recommend to someone who started learning React only recently?
1 reply
0 recast
0 reaction
Max Jackson
@mxjxn.eth
@tanstack/react-query is the safest. https://tanstack.com/query/latest/docs/react/overview def learn built-ins like context, useReducer etc. but it gets messy once you start introducing useEffects left & right. At my last job, I suggested we drop react-context for this library 👇 and it saved us a TON of headache.
1 reply
0 recast
0 reaction
Max Jackson
@mxjxn.eth
the other answer is Redux. A little bit of a learning curve and not too much different from using react-context, but its widely used and great functional reactive basis for an app
1 reply
0 recast
0 reaction