use-app-state::globe_showing_Asia-Australia:useAppState()挂钩。基于C...

@ laststance / use-app-state :globe_showing_Asia-Australia: useAppState()挂钩。基于useContext构建的setState()的全局版本。 :grinning_face:用法// index.js import React from ' react ' import ReactDOM from ' react-dom ' import AppStateRoot , { useAppState } from ' @laststance/use-app-state ' // initialState must be Plain Object const initialSta
zip
use-app-state-master.zip 预估大小:25个文件
folder
use-app-state-master 文件夹
file
.eslintrc 1KB
file
.gitattributes 28B
folder
.github 文件夹
folder
workflows 文件夹
file
ci.yml 505B
file
jest.setup.js 452B
file
yarn.lock 206KB
folder
src 文件夹
file
Context.ts 229B
file
index.ts 123B
file
useAppState.ts 370B
folder
util 文件夹
file
isPlainObject.ts 588B
file
Provider.tsx 1KB
folder
images 文件夹
file
codesandbox.gif 847KB
file
.npmignore 201B
file
tsconfig.json 510B
file
LICENSE 1KB
folder
test 文件夹
file
Provider.test.tsx 2KB
folder
__snapshots__ 文件夹
file
Provider.test.tsx.snap 616B
file
integration.test.tsx 2KB
file
jest.config.js 165B
file
.prettierrc 43B
file
README.md 8KB
file
.all-contributorsrc 1KB
file
.gitignore 32B
file
CHANGELOG.md 1KB
file
.eslintignore 15B
file
package.json 2KB
zip 文件大小:829.62KB