Reputation: 371
I have a React App with a global custom cursor (not only a png changed in CSS, but a colored circle-div that‘s following the mouse). My App consists of various child components (project teasers), when hovering those project teaser components the cursor component should change size, color and text content.
I have no experience with Redux so far, but do I need to store the cursor state in Redux for such a scenario or can I pass it down another way?
Thanks.
Upvotes: 0
Views: 344
Reputation: 735
You can either use react context/redux or manually pass down the props each component. If you want study react context, here's a good article.
Upvotes: 2