Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 768 Bytes

README.md

File metadata and controls

30 lines (16 loc) · 768 Bytes

useAuth()

  1. 版本:useState

  2. 版本:useContext

  3. 版本:custom hook

  4. 版本:Best Practice


useContext

https://react.dev/reference/react/createContext#createcontext

Best Practice

https://pjchender.dev/react/react-context-provider-api/#-usecontext-best-practice


React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available: