From f731871bba1ed8259a3416ff63a66541b71a0026 Mon Sep 17 00:00:00 2001 From: Thilo-Alexander Ginkel Date: Fri, 4 Feb 2022 21:55:26 +0100 Subject: [PATCH] Fix createStateContainerReactHelpers documentation (closes #1197) Signed-off-by: Thilo-Alexander Ginkel --- .../docs/state_containers/react/connect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/opensearch_dashboards_utils/docs/state_containers/react/connect.md b/src/plugins/opensearch_dashboards_utils/docs/state_containers/react/connect.md index 56b7e0fbc56..5d0cd2d85a4 100644 --- a/src/plugins/opensearch_dashboards_utils/docs/state_containers/react/connect.md +++ b/src/plugins/opensearch_dashboards_utils/docs/state_containers/react/connect.md @@ -11,7 +11,7 @@ const Demo: React.FC = ({ name, punctuation }) =>
Hello, {name}{punctuation}
; const store = createStateContainer({ userName: 'John' }); -const { Provider, connect } = createStateContainerReactHelpers(store); +const { Provider, connect } = createStateContainerReactHelpers(); const mapStateToProps = ({ userName }) => ({ name: userName }); const DemoConnected = connect(mapStateToProps)(Demo);