huangbinjie / useForm

use form with hooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useForm

Usage.

function Form() {
  const [Username, username] = useInput()
  const [Password, password] = useInput()
  return (
    <form onSubmit={() => submit(username,password)}>
      <label>用户名</label><Username />
      <label>密码</label><Password />
    </form>
  )
}

About

use form with hooks


Languages

Language:TypeScript 100.0%