docs(readme): typos

This commit is contained in:
moklick
2020-06-02 18:37:57 +02:00
parent 5cbeda5c3f
commit d69277df8a

View File

@@ -353,7 +353,7 @@ const FlowWithControls = () => (
## ReactFlowProvider
If you need access to the internal state and action of React Flow outside of the `ReactFlow` component you can it with the `ReactFlowProvider` component:
If you need access to the internal state and action of React Flow outside of the `ReactFlow` component you can wrap it with the `ReactFlowProvider` component:
```javascript
import ReactFlow, { ReactFlowProvider } from 'react-flow-renderer';
@@ -490,7 +490,7 @@ const Flow = () => (
);
```
If you need more control you can wrap the `ReactFlow` component with the `ReactFlowProvider` component in order to be able to call `useStoreState` outside of the component.
If you need more control you can wrap the `ReactFlow` component with the `ReactFlowProvider` component in order to be able to call `useStoreState` outside of the `ReactFlow` component.
# Examples