diff --git a/README.md b/README.md
index 1dfbfaa..c5f0eb9 100644
--- a/README.md
+++ b/README.md
@@ -15,8 +15,9 @@ The ultimate companion of all your [solid-js](https://github.com/ryansolid/solid
- [Basic usage](#basic-usage)
- [With providers](#with-providers)
- [With disposable app](#with-disposable-app)
- - [createProvider](#createprovider)
+ - [createStore](#createstore)
- [Basic usage](#basic-usage-1)
+ - [With props](#with-props)
## Features
@@ -99,14 +100,14 @@ if (module.hot) {
}
```
-### createProvider
+### createStore
A small utility that helps generate Provider & associated hook
#### Basic usage
```tsx
-const [Provider, useProvider] = createProvider(
+const [Provider, useProvider] = createStore(
{ count: 0, first: 'Alexandre' },
(set, get) => ({
increment(by = 1) {
@@ -129,4 +130,33 @@ const Counter = () => {
}
render(() =>
(
store: T,
fn: (set: SetStateFunction = (props) => {
+ const value: Store = generateStore(store, fn, props);
return