Update comment //store.ts to //store.tsx in zustand-v3-create-context.md (#1893)

This commit is contained in:
Lars Artmann 2023-06-23 09:18:09 +02:00 committed by GitHub
parent 9333eb629c
commit 3584d5075a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";