Skip to content

Commit

Permalink
Fix createStateContainerReactHelpers documentation (#1213)
Browse files Browse the repository at this point in the history
Issues Resolved:
#1197

Signed-off-by: Thilo-Alexander Ginkel <tg@tgbyte.de>
  • Loading branch information
ginkel committed Feb 7, 2022
1 parent 895a564 commit 5d41936
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Demo: React.FC<Props> = ({ name, punctuation }) =>
<div>Hello, {name}{punctuation}</div>;

const store = createStateContainer({ userName: 'John' });
const { Provider, connect } = createStateContainerReactHelpers(store);
const { Provider, connect } = createStateContainerReactHelpers<typeof store>();

const mapStateToProps = ({ userName }) => ({ name: userName });
const DemoConnected = connect<Props, 'name'>(mapStateToProps)(Demo);
Expand Down

0 comments on commit 5d41936

Please sign in to comment.