useCookie::cookie:基于js-cookie的React Hook for Cookies:cookie:

时间:2024-04-07 05:59:40
【文件属性】:

文件名称:useCookie::cookie:基于js-cookie的React Hook for Cookies:cookie:

文件大小:3KB

文件格式:ZIP

更新时间:2024-04-07 05:59:40

react cookie react-hooks JavaScript

useCookie-React钩 基于React Hook for Cookies 安装方式 npm install @use-hook/use-cookie --save 用法 import { useCookie } from "@use-hook/use-cookie" ; function App ( ) { const [ name , setName ] = useCookie ( "name" , "Stefan" ) ; return ( < div> < input type = "text" placeholder = "Provide your name" value = { name } onChange = { e => setName ( e . target . va


【文件预览】:
useCookie-master
----.gitignore(12B)
----package.json(715B)
----package-lock.json(3KB)
----src()
--------index.js(770B)
----README.md(673B)

网友评论