docs: typo & improve (#2891)

* chore: typo

* docs: update
This commit is contained in:
𝑾𝒖𝒙𝒉 2024-12-10 21:48:39 +08:00 committed by GitHub
parent 3fdf3c9b20
commit a958de910f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -87,7 +87,7 @@ const useAgeStore = createWithEqualityFn<AgeStore>()(
)
export default function App() {
const age = useAgeStore((state) => stage.age)
const age = useAgeStore((state) => state.age)
const setAge = useAgeStore((state) => state.setAge)
function increment() {

View File

@ -693,7 +693,9 @@ const CounterStoresProvider = ({ children }) => {
)
return (
<CounterStoresContext.Provider>{children}</CounterStoresContext.Provider>
<CounterStoresContext.Provider value={stores}>
{children}
</CounterStoresContext.Provider>
)
}
```

View File

@ -663,7 +663,9 @@ const CounterStoresProvider = ({ children }) => {
)
return (
<CounterStoresContext.Provider>{children}</CounterStoresContext.Provider>
<CounterStoresContext.Provider value={stores}>
{children}
</CounterStoresContext.Provider>
)
}
```