Skip to content

Commit

Permalink
adjust spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
charkour committed Jun 1, 2024
1 parent a359833 commit 94db295
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,9 @@ If you have default props, you can pass them to the `Provider` component.

The `useStore` hook is used to access the store in a child component. Be sure that the child component is wrapped in the `Provider` component.


```tsx
function MyComponent = () => {
const storeState = useStore((state) => state);
return <div>{storeState.count}</div>;
};
```
```

0 comments on commit 94db295

Please sign in to comment.