How to create Reusable React Forms? JSON Hooks forms - Part 5

preview_player
Показать описание
How to create Reusable React Forms? In this video, we will use React hook form to create Form component that renders form using JSON. This short series explains everything you need to know to manage forms in React for any use-case.

React Powerhouse
React powerhouse is a series that shows you how you can create powerful web applications using React. This series is for moderate to advanced React users.

Resources
Рекомендации по теме
Комментарии
Автор

My friend, I am a senior IT kind of person. Spent more than three decades in IT. The reason I am saying this, to establish the importance of what I am going to say. First - Wonderful and precise content - Thinking abstract out of the box are very few. After a long time I found one - it is you. I really enjoyed this journey of watching your video. But I was not happy to see the subscribers you got? Probably there is a mistake on your side as well. Then content in this video are really good but can be appreciated only by experienced people quickly. This means, you have to make contents for newbies running basics Piece by piece. We all know Koushik of Javabrains. Trust me, I enjoyed your video as if I am watching him on the show. Try to prepare some basic contents but don't miss to release dense contents like this - otherwise we may fly away :). You have good time ahead. make it natural and keep going.

baluchandran
Автор

react hook form update: From: <input type='text' name='name' id="my_text" ref={register} /> To: <input type='text' id="my_text" {...register("name")} />

nickbizz
Автор

Version 6.X.X:
<input ref={register({ required: true })} name="test" />

Version 7.0.X:
<input {...register('test', { required: true })} />

louis-
Автор

This was really great and helpful, thanks so much!

craigcampbell
Автор

Hi! This was a wonderful video, however is it possible if you also show us how to integrate the select tag in it? Thanks in advance!

MrCuteguylol
Автор

Great video. How can I use multiselect and select component with backend api to call?

dineshkarnhakim
Автор

A very informative tutorial on creating re-usable React Forms using React-Hook-Form Library. Thanks very much.


{2022-03-11}

Pareshbpatel
Автор

Nice video, congratulations for the great content. I have a question I hope you can help me, I have a invoice form that need a detailed list but I build this detail from another component external to this form how can o validate that details have data and send the array of data with the submit form? Thanks 🤓

cristhianjhlcom
Автор

Cool. Could you show CRUD operations in the form and save it in a table grid within a page and backed as google firestore. Thanks

jaggyjut
Автор

How can I do this for a password confirmation when both have the case 'password'?

alanfljesus
Автор

Maybe you would create a <Input /> and pass all props to them.
Another thing u didn't think about is textarea, select, and the data within radio and checked buttons, useState has a strange behavior when you check and uncheck them.
What about all other html inputs attr? Data Picker, file, button? I think creating a switch case for each one is kind bad, idk. Just my opinion, maybe adding custom hooks for validation would be easier.

raulrothschild
Автор

I think there had been some changes for ref since the video and now validationProps don't work, having problems rendering errors, anybody has a solution?

ievabroberg
Автор

In a Django Rest Framework API when you use OPTIONS method you'll get a response like:
{
"name": "Table",
"description": "",
"renders": [
"application/json",
"text/html"
],
"parses": [
"application/json",
"application/x-www-form-urlencoded",
"multipart/form-data"
],
"actions": {
"POST": {
"id": {
"type": "integer",
"required": false,
"read_only": true,
"label": "ID"
},
"name": {
"type": "string",
"required": true,
"read_only": false,
"label": "Name",
"max_length": 50
},
}
}
}
}
Would I be able to do something similar to get the fields of objects in "actions. POST" in this more dynamic way? Since it's not an array I think i can't do table.map() for example

jrmsrs