• 1 year ago
এই ভিডিওতে আমি দেখিয়েছি কীভাবে React এ একটি Form থেকে ডাটা অ্যাক্সেস করা যায় onSubmit এবং event.target ব্যবহার করে।
এখানে আমরা ইনপুট ফিল্ড থেকে ইউজারের ডাটা নিয়েছি এবং সেটি console এ বা UI তে দেখিয়েছি।

📌 ভিডিওতে যা শিখবে:

React এ Form তৈরি করা

onSubmit ব্যবহার করে form handle করা

e.preventDefault() কেন লাগে

event.target.value দিয়ে ইনপুট ডাটা অ্যাক্সেস

Dynamic ভাবে multiple input ফিল্ড হ্যান্ডেল

🔥 ভিডিও শেষে তুমি নিজের প্রজেক্টে form input ডাটা হ্যান্ডেল করতে পারবে।

Category

📚
Learning
Transcript
00:00Assalamualaikum
00:30Ok
00:30The first of all we will have code.the key
00:34The next update we attend
00:36Here we use book
00:36We are going to be releasing
00:37and we check our
00:55It is react
00:58JavaScript
00:59So, we have to use rolldown white experimental
01:02So, we have to use rolldown white data
01:05and install with npm and start now
01:08Just, we have to install
01:11We have to install it
01:13We have to press enter
01:15So, we have to open the browser and open the file
01:19So, we have to use VS to use VS
01:22We have to use VS to use VS
01:25And we have to use source file
01:27And only I can use other only two to one another at the time when that is a
01:35day, all alone.
01:36I can I get the data saying is line say well about the exam.
01:42I got on the fog.
01:43I got on the open up to a p Jan.
01:46I say it I'm only very proud and I'm going on stage data are connected to nothing.
01:50It's another thing that I'm going to say about the local lies.
01:54So that's a little less seconds.
01:57we are close to the end and we have to read the
02:00react
02:01simple form
02:04simple
02:05we will do this
02:07we will go to the source file
02:09and go to the source folder
02:11we will do this
02:13we will use the name of simple form
02:15we will use the container
02:17container
02:21container
02:23we will use the simple form
02:25simple form
02:27we will use the simple form
02:31jx
02:33template
02:35simple form
02:37we will use the form
02:39form
02:41and
02:43we will use the action
02:45when we use the back end
02:49we will use the action
02:51when we have the front
02:53That's why I am not going to action use.
02:56And this is react use.
02:58So react from react.
03:01And from here I am not just input fill.
03:04Type text and placeholder.
03:09Interview.
03:11Interview.
03:12I am not just a simple form.
03:17So just simple form.
03:22From-́tare, I am not just a simple form.
03:24Sub column, I am not just a simple form.
03:27And when you click on H1,
03:30I am not just a simple form.
03:34Some x-3,
03:37So I am not just a simple form,
03:39I am not just a simple form.
03:41So submit to the form.
03:43And the form form is the right.
03:46Be médias input from man,
03:49From input also.
03:51Edited Freedom Page
03:59Submit Type
04:02Submit Type
04:03Submit Type
04:12Submit Type
04:15so this is the first time
04:17but it was very interesting
04:19so if I click the submit
04:21then I will reload
04:23and I will go where to go
04:25and that will be 3.4
04:27because I am not backhand
04:29that's why I am just
04:31automatically reload
04:33so I am not the information
04:37that will submit
04:39so I am not the console
04:41so I am from everybody
04:43I'm a connector on submit a button handler at could the body so handler at
04:50course in the middle of a mechanical handle the degreefully I can handle the
04:53degree will constant handle submit and let's have it when I've got a function
05:00the degree in a tire function on the parameter nilamna above even I'm not
05:04console awkward away console dot log I'm a there from
05:11but need it like a column and a camera is a handle submitted about the delivery and
05:17the seven column every day I can do it's like a column and that's a minute quickly
05:22as I'm a console inspectori inspector of the consoler I'm not gonna get like a
05:28submit to the second I should know it is a solution here from submitted I should
05:33look at the second color to reload with the back end to the same because
05:36This is the first time we have done from
05:38The first time we have done from
05:42By default from submit
05:44From data go back end
05:46So we have done back end
05:48So that's why we have done
05:50We have to use the parameter
05:52Event
05:54Let's put E
05:56Let's put the event
05:58We put the event
06:00And for the first time
06:02We have to prevent default
06:04Prevent default
06:06And we have to call
06:08Prevent default
06:10Submit
06:12Click on Submitted
06:14Submitted
06:16Submit
06:18Reload
06:20Because we have to call
06:22Prevent default
06:24We have to call
06:26Prevent default
06:28So
06:30Submit
06:42Submit
06:44Submit
06:46Submit
06:48Submit
06:50Submit
06:52બીતોરે હચે આમાદેર સ્પીસો થાકે ઇન્પોટ ઇન્પોટ ઇન્પોટ આમરા જે દેક્ટો ખ્યાલ ક્યાલ કોરી દ�
07:22નેમ દીબોચે એનામ કીાશં નામ દીલં નામ નામ આમામ આમરા આરક્ટા ઇન્પોટ્ટ્ય ઈન્પોટ્ટ્ટ્ટ હોટ્
07:52આચાયું આબોં નામામ નેંડ્ટ્ટ્યંનામ આમરાસે આમરા ઇખાને ટારગેટર પોરે
07:58I am the second key to my original value,
08:02I am the same value as a value.
08:05So, I am the name to add,
08:07set and add,
08:09and make it like the email address.
08:11Add the red of tracker dot com,
08:14add the red of tracker dot com,
08:15add the subbit.
08:16So, I will show the name to input,
08:22the input address is the name name.
08:28...
08:36...
08:39...
08:44...
08:47...
08:55...
08:56...
08:57...
08:58I'm other from the column simple from
09:01reacted simple from the column Jekhan the camera
09:03nam nilam and then which camera email address
09:07care other console get value there at
09:09well so I think I'm the most of the key
09:11of a group show the simple way to after
09:12I can from today and I got caught
09:14about it next video the simple we should
09:16go till then I love is a salon only

Recommended