React-joyride and state management recommendation and multi app route questions #1143
-
Howdy React Team, I am wondering what kind of state management do you recommend with React-joyride? There were discussions of using zustand but then as a new developer I am unfamiliar and read about redux too, so now I am confused on which one would be better. I've created a tutorial for first time user to walk through each page that will prompt it to click on the specified navigation link , but for some of the triggers to the next step I do, I am using windows listener for a specific toast like "success" which I feel is not efficient in anyway. I will test out zustand to replace the windows listeners. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
First off, great job diving into React-Joyride and thinking about state management—it's totally normal to feel a bit overwhelmed with all the different options! 😊 Just a quick heads-up: despite having "React" in the name, React-Joyride isn’t maintained by the React team—it’s a third-party package. So, there’s no "official" recommendation for state management. That said, you don’t necessarily need a state management library unless your use case requires more control over the tour's progress across different parts of your app. What’s the Best Approach?The best approach depends on how complex your state is:
❌ Why Window Listeners Aren’t the Best ApproachYou're right that using Instead of listening for global events, React components should react to state changes directly. This makes your app:
🔄 Syncing Joyride with State Using
|
Beta Was this translation helpful? Give feedback.
Hey @anguyen-codelink
First off, great job diving into React-Joyride and thinking about state management—it's totally normal to feel a bit overwhelmed with all the different options! 😊
Just a quick heads-up: despite having "React" in the name, React-Joyride isn’t maintained by the React team—it’s a third-party package.
So, there’s no "official" recommendation for state management. That said, you don’t necessarily need a state management library unless your use case requires more control over the tour's progress across different parts of your app.
What’s the Best Approach?
The best approach depends on how complex your state is: