react-hook-form-persist:使用您选择的存储持久化并填充react-hook-form表单

时间:2024-05-26 19:35:00
【文件属性】:

文件名称:react-hook-form-persist:使用您选择的存储持久化并填充react-hook-form表单

文件大小:214KB

文件格式:ZIP

更新时间:2024-05-26 19:35:00

persistent persistent-storage react-hook-forms react-hook-form JavaScript

React挂钩形式的持久性 使用您选择的存储持久化并填充表单 目录 用法 import React from "react" ; import ReactDOM from "react-dom" ; import useForm from "react-hook-form" import useFormPersist from 'react-hook-form-persist' function App ( ) { const { register , handleSubmit , watch , errors , setValue } = useForm ( ) ; useFormPersist ( "foo" , { watch , setValue } , { storage : window . localStorage , // default window.s


【文件预览】:
react-hook-form-persist-master
----renovate.json(41B)
----package.json(2KB)
----LICENSE(1KB)
----package-lock.json(440KB)
----src()
--------index.js(847B)
--------__tests__()
----.gitignore(42B)
----README.md(3KB)
----yarn.lock(314KB)
----babel.config.js(133B)

网友评论