News for hackers. Stuff that matters.
Re:I fell in love with low-JS by yourad_io on Wednesday May 04, 2022 @08:18PM (#31267709)
If you ever have to go back to react, take a look at mobx

It is very uncomplicated

Re:I fell in love with low-JS by aabbcc1241 on Wednesday May 04, 2022 @08:56PM (#31268020)
IMO mobx has better DX than redux, not sure why it's less popular. Probably because react community prefer FP over OOP?
Re:I fell in love with low-JS by tcoff91 on Thursday May 05, 2022 @12:34AM (#31269517)
Some graphQL clients can eliminate the need for these state management tools. Everything becomes just graphQL queries and mutations with very sophisticated caching. When you mutate some resource, other components that have queries that are affected by the mutation will re render with the new state.