Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. const connect = (mapState, mapActions) => Component => {
  2. const store = useStore(mapState);
  3. const actions = useActions(mapActions);
  4. return function Wrapped(props) {
  5. return <Component {...props} {...store} {...actions} />;
  6. };
  7. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement