StoryNote logo

In React.js, I created a global state Provider component, that implements useReducer, which outputs a dispatch function. Can I expose and access this dispatch function from outside the component?

by /u/JrSoftDev in /r/webdev

Upvotes: 4

Favorite this post:
Mark as read:
Your rating:
Add this post to a custom list

StoryNote©

Reddit is a registered trademark of Reddit, Inc. Use of this trademark on our website does not imply any affiliation with or endorsement by Reddit, Inc.