React JS Forms | Controlled Inputs | Learn ReactJS

React JS Forms | Controlled Inputs | Learn ReactJS

Dave Gray

2 года назад

33,883 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@codingispower1816
@codingispower1816 - 27.11.2023 00:16

At what point does the parent component (in this case App.jsx) become too large from lifting all the state up? How can this be optimized or broken out efficienty?

Ответить
@jobisintheair-bv7jm
@jobisintheair-bv7jm - 22.11.2023 00:19

I like the video but I feel there is a huge level increase from the previous ones. Thanks anyway. Good stuff.

Ответить
@ZeeshanMRaje
@ZeeshanMRaje - 16.11.2023 10:13

I must say this guy is legend , Love & respect from India (Pune)

Ответить
@yajur.bhrdwj
@yajur.bhrdwj - 13.10.2023 20:54

hey dave since i did not had any data in the local storage, i added this statement in app.js :- const [items, setItems] = useState(JSON.parse(localStorage.getItem('shoppinglist')) || [ ] ); But how should i add data to the local storage before. how did you add data milk and bread before into the local storage?

Ответить
@vishalkashyap8480
@vishalkashyap8480 - 06.10.2023 01:17

Here in the form input element we have provided 'required' as an attribute then why the need of if (! newItem ) return ;

Ответить
@viditgoel2909
@viditgoel2909 - 03.10.2023 11:33

Great Tutorial Sir

Ответить
@eeedit8870
@eeedit8870 - 21.09.2023 18:55

Kudos. Great materials for learning React!

Ответить
@toonice555
@toonice555 - 09.08.2023 23:51

Very clean way to filter! state stays the same and you just filter the results you pass to the component. very nice! i always created a filtered state but this is so much easier and reduces the need for extra states for no reason.

Ответить
@toonice555
@toonice555 - 09.08.2023 21:15

So many great details

Ответить
@khaledbenshible2657
@khaledbenshible2657 - 23.06.2023 21:11

Fantastic, thank you very very....much. Please don't stop making React.js videos

Ответить
@nithinjoji7487
@nithinjoji7487 - 18.05.2023 21:56

hi dave..

Objects are not valid as a React child (found: object with keys {id, checked, item}). If you meant to render a collection of children, use an array instead.

Ответить
@harshjayantdiwase7160
@harshjayantdiwase7160 - 14.05.2023 17:06

Cannot read properties of null (reading 'filter')
TypeError: Cannot read properties of null (reading 'filter')

this error is comiing

Ответить
@harag9
@harag9 - 26.04.2023 16:22

LOL I just commented on previous lesson about the key attribute on the <li> tag then started watching this one... and the first thing you do... removes the attribute :).

In your CSS at the start you labelled it "addForm" & "searchForm" -- however isn't css convention all lowercase with dashes e.g. "add-form", or is this a css/react convention ? I've always done it all lower with dashes.

Great episode, many thanks. Looking for to the rest in the play list. :)

Ответить
@Ai-HealthEdu
@Ai-HealthEdu - 02.04.2023 05:42

Dave i did not really get it there when check for the blank value and prevent it from getting submitted . cause you have already set the value of new item to an empty string and empty sring returns a truthy value

Ответить
@tomaszklekner9879
@tomaszklekner9879 - 08.03.2023 23:43

Amazing content!!!

Ответить
@Ujedkemal
@Ujedkemal - 14.12.2022 09:05

Hi Dave, i just learned a lot form your video. i supposed to learn from your channel since a long time ago . I regret so much to just find your channel a few days ago. thanks a lot dave. big regards from Indonesia

Ответить
@sakibcoder
@sakibcoder - 09.12.2022 07:06

I'm following your tutorial. I don't know how much I will get but your tutorial seems easy to me. Thanks

Ответить
@dusanvulic7275
@dusanvulic7275 - 30.11.2022 14:20

Awesome explained search functionality ! Thank you very much !

Ответить
@oncoding4520
@oncoding4520 - 23.10.2022 21:48

As I say I will comment on each of your video in order to help you out :) Just a question, after I finish this course which course will be recommended by you to take bcs for example you have a lot of react videos also. I just saw 1min of React hooks and it seems that they are some part of other react videos (maybe this playlist !) like I dont know. After I finish all the 52 videos here should I goo to authentication ?

Ответить
@abdulrahmanagboolaosho3582
@abdulrahmanagboolaosho3582 - 20.10.2022 12:20

another excellent tutorial, thanks man

Ответить
@abdulrahmanagboolaosho3582
@abdulrahmanagboolaosho3582 - 19.10.2022 20:30

At first I thought react wasn't meant for me, but now I have become more confident

Ответить
@noir4356
@noir4356 - 12.10.2022 02:00

Your tutorials are probably the best out there :) Subbed.

Ответить
@kiranrai5014
@kiranrai5014 - 22.09.2022 17:35

if we delete all the items and close the browser, and again restart the server, it displays an error saying items.length is invalid as items is null in the footer and content section as both reads .length property for the expression. can you help me to solve this issue.

Ответить
@subliminakeys1674
@subliminakeys1674 - 18.09.2022 20:26

Huge fan of your videos! Very descriptive and engaging. I especially like how you constantly say the shortcut keys you are using, helps drill those into my head for memory. I want to note though, I ran into an error. You dont address what will happen if local storage is empty and you try to getItem. I got a black screen when i cleared my storage. I added an if statement to check if local storage returns null. If null then I set item to json stringify an empty array. I dont know if its best practice, but it solved my issue.
edit- I seen another comment that addressed this and their solution was better. They just used '|| []' after the localStorage.getItem statement and its much cleaner than another if statement like i had

Ответить
@oussamabouallati
@oussamabouallati - 14.09.2022 19:30

Thank you sir!

Ответить
@oussamabouallati
@oussamabouallati - 14.09.2022 06:39

Thank you sir!

Ответить
@hydrohelp9847
@hydrohelp9847 - 12.09.2022 10:59

Comment for up

Ответить
@min0234
@min0234 - 09.09.2022 21:54

thanks again for the tutorial! Quick question, I noticed that you used camel case in the index.css, and I wanted to know if that's okay to do that. VS code gave me a little message to use kebab-case instead of camel case, but I also get that we used camel case in the jsx file. Is it safe to use camel clase in CSS file? or naming in camel case in jsx file?

Ответить
@Tandav_432
@Tandav_432 - 30.08.2022 14:43

I have hardtimes understand login behind this line could you pls explain how how pass search and getting result here??


{items.filter(item=>((item.item).toLowerCase()).includes(search.toLowerCase()))}

Ответить
@googleboughtmee
@googleboughtmee - 25.07.2022 15:11

Do we still need those semi-colons on the end of lines? Half the lines have them and half don't

Ответить
@lakshmidesineedi7421
@lakshmidesineedi7421 - 25.06.2022 07:18

Hi Dave

const [items, setItems] = useState(JSON.parse(localStorage.getItem('shoppinglist'))); using this statement i tried to get the data from local storage and the output was complete blank page.
please help.

Ответить
@lakshmidesineedi7421
@lakshmidesineedi7421 - 24.06.2022 01:17

Fantastic teacher !!! Thanks Dave i learned a lot from this series.

Ответить
@tuanphamvan655
@tuanphamvan655 - 26.05.2022 16:13

Good

Ответить
@jiweihe3413
@jiweihe3413 - 15.05.2022 18:46

Thanks for another great video. At the end of the video, is ‘inputref.current’ a current state? Does it always pointing to the input element? Trying to understand what inputref.current.focus() is doing.

Ответить
@Tandav_432
@Tandav_432 - 03.05.2022 23:10

const handleSubmit = (e)=>{
e.preventDefault();
if(!newItem) return; --< and this line
addItem(newItem);
setNewItem(''); <-- what's the meaning of this line here?

could you pls explain us Dave??

Ответить
@WrathNBrimstone
@WrathNBrimstone - 27.04.2022 15:02

you've got way too many js items trying to teach inherited props and mutliple modular calls this is very bad for learning

Ответить
@salehm5413
@salehm5413 - 26.03.2022 03:43

Hi Master Dave i want to ask you about
How I can start my own project i was watched your toutirul but i can not do any think with my own self. how i can fixed this problem and thancks for all this amazing content and how you are learned all this stuff with your own self ❤ have a good day .

Ответить
@fernandosalas4885
@fernandosalas4885 - 18.03.2022 06:13

Please don't stop making React.js videos. You are the best!

Ответить
@aman7555
@aman7555 - 03.03.2022 14:09

Excellent as always!

Ответить
@neo90sr
@neo90sr - 01.12.2021 10:20

Fantastic, thank you for these videos! You should do a react course on udemy

Ответить
@omaralazzawi5305
@omaralazzawi5305 - 02.10.2021 23:42

thanks a lot Dave

Ответить
@alisaleem2381
@alisaleem2381 - 20.08.2021 14:21

Hi sorry if I sound rude but I think thumbnail of actual preview might make more people to click on your vids.

BTW your tutorials are to the point and soo good for a beginner. 👌
You are underrated.

Ответить
@Xylasider
@Xylasider - 18.08.2021 17:06

Question. As long as the array isn't empty, won't items.length always be the same as the last id? Why will items.length + 1 not work?

Ответить
@kannder83
@kannder83 - 16.08.2021 18:25

Thank you for your course. I have really learned a lot of things.

Ответить
@fazzyakamello
@fazzyakamello - 15.08.2021 05:53

Amazing tuts as always Dave!

Ответить
@soniablanche5672
@soniablanche5672 - 09.07.2021 04:02

I've noticed a bug when setting the initial data. The very first time you launch the application (or when you wipe the local storage), localStorage.getItem('shoppinglist') returns null, and JSON.parse(null) returns null, but our application expects an array. I would set an empty array as a default value for this particular case.

JSON.parse(localStorage.getItem('shoppinglist')) || [];

Ответить
@CODEABC
@CODEABC - 05.07.2021 21:48

I love your teaching method..please make a play list like this one with node. Then make more and more project with mern stack

Ответить