Skip to content

Commit 45dd513

Browse files
committed
docs(readme): remove function store docs (until final API)
1 parent 1672cd2 commit 45dd513

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

README.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ export default view(() => {
488488
**Local stores in functions rely on React hooks. They require React and React DOM v16.8+ or React Native v0.59+ to work.**
489489

490490
<details>
491-
<summary>You can use React hooks - including <code>useState</code> - in function components, Easy State won't interfere with them. Consider using <a href="#local-auto-effects-in-function-components">autoEffect</a> instead of the `useEffect` hook for the best experience though.</summary>
491+
<summary>You can use React hooks - including <code>useState</code> - in function components, Easy State won't interfere with them. Consider using <a href="#local-auto-effects-in-function-components">autoEffect</a> instead of the <code>useEffect</code> hook for the best experience though.</summary>
492492
<p></p>
493493

494494
```jsx
@@ -512,26 +512,6 @@ export default view(() => {
512512

513513
</details>
514514

515-
<p></p>
516-
<details>
517-
<summary>You can also pass a <code>function</code> to the store. In this case easy-state will create a state store from the function result.</summary>
518-
<p></p>
519-
520-
```jsx
521-
import { store, view } from '@risingstack/react-easy-state';
522-
523-
const localStore = () => ({ name: 'Bob' });
524-
525-
export default view(() => {
526-
const person = store(localStore);
527-
return <div>{person.name}</div>;
528-
});
529-
```
530-
531-
This is useful for large local stores to avoid large object creation on every render.
532-
533-
</details>
534-
535515
#### Local stores in class components
536516

537517
```jsx

0 commit comments

Comments
 (0)