ReactJS
CtrlK
  • Roadmap
  • JavaScript
    • Function vs Import vs Export
    • Call back
  • Fundemental Topics
    • Create react app
    • JSX
    • Page 1
    • Components
    • Props and state
    • Conditional Rendering
    • Hook
    • Callback
  • Web
    • Giới thiệu môn học
    • Week 2
    • Week 3 - Function components
    • Week4
  • Học Tập
    • Giới thiệu về React
    • Buổi 2
    • Buổi 3
    • ASP .Net Core Web Application
  • Hook
    • Use State
    • Use Effect
    • Use Context
    • Custom hook
  • React Axios
  • React Router
  • React Redux
  • Material UI
  • Forms
  • React Table
  • Flex
  • Composition and Inheritance
  • Statefull and stateless
  • Design UI and Others
    • Color
    • SCSS/ SASS/ CSS
Powered by GitBook
On this page
  • 1. React Hook form
  • 2. Các nhu cầu

Was this helpful?

Forms

1. React Hook form

Check valid :

 const {
    handleSubmit,
    control,
    formState: { errors, isValid },
    watch,
  } = useForm({ mode: "all" });

  • rules --> pattern

  • errors --> view errors

2. Các nhu cầu

  • Validation

    • Build Rules

    • Errors handle

  • Check valid

PreviousMaterial UINextReact Table

Last updated 3 years ago

Was this helpful?