mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
Update comment //store.ts to //store.tsx in zustand-v3-create-context.md (#1893)
This commit is contained in:
parent
9333eb629c
commit
3584d5075a
@ -110,7 +110,7 @@ Discussion: https://github.com/pmndrs/zustand/discussions/1276
|
||||
Here's the diff showing how to migrate from v3 createContext to v4 API.
|
||||
|
||||
```diff
|
||||
// store.ts
|
||||
// store.tsx
|
||||
+ import { createContext, useContext } from "react";
|
||||
- import create from "zustand";
|
||||
- import createContext from "zustand/context";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user