Skip to content

Commit

Permalink
Fix createStateContainerReactHelpers documentation (closes opensearch…
Browse files Browse the repository at this point in the history
…-project#1197)

Signed-off-by: Thilo-Alexander Ginkel <tg@tgbyte.de>
  • Loading branch information
ginkel committed Feb 4, 2022
1 parent 895a564 commit f731871
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 f731871

Please sign in to comment.