DEV Community

Discussion on: Would you use redux or another state management in 2020?

 
wolfiton profile image
wolfiton • Edited

Thanks for the quick follow up @franciscoquintero,
I will probably try a simple app with Xstate first to see how the data flows and see what states I will have to take into account, besides "idle".

Update: Did your friend tested his code after using Xstate with Jest, is it even possible?

Thread Thread
 
cescquintero profile image
Francisco Quintero 🇨🇴

Yes. He tested his code. In his opinion, it was easier because state machines are more predictable.

He used React Testing Library and Cypress. I think one of those tools made the testing part easier for him. I will ask him :)