Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const connect = (mapState, mapActions) => Component => {
- const store = useStore(mapState);
- const actions = useActions(mapActions);
- return function Wrapped(props) {
- return <Component {...props} {...store} {...actions} />;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement