local storage hook:React Hook本地存储 源码
本地存储挂钩 React Hook本地存储 安装 npm add local-storage-hook 签名 const [ localState , setLocalState ] = useLocalStorage ( key , defaultValue ) ; 用法 import React from 'react' import useLocalStorage from 'local-storage-hook' export default ( ) => { // const [localState, setLocalState] = useLocalStorage(key, defaultValue); const [ login , setLogin ] = useLocalStorage ( "login" , false ) ; return ( <
文件列表
local-storage-hook-master.zip
(预估有个21文件)
local-storage-hook-master
.gitignore
281B
.babelrc
95B
.eslintrc
837B
.history
src
index_20200326230446.js
461B
index_20200326225316.js
461B
index_20200326230902.js
481B
index_20200326231705.js
663B
暂无评论