Login Form in ReactJS with React Hooks

  Рет қаралды 194,671

Tyler Potts

Tyler Potts

Күн бұрын

Пікірлер: 197
@kashmirtechtv2948
@kashmirtechtv2948 3 жыл бұрын
Changing the gradient with Background position on Hover is cool
@hedgewizardly
@hedgewizardly 2 жыл бұрын
I really appreciate you taking the time to throw in some CSS to this too, because even if I've got slightly different use cases, it really helps to contextualise what you've taught us and how changing certain values affects the end result!
@Sidspiritual
@Sidspiritual 3 жыл бұрын
you are awesome brother i got my job as a react js developer just becoz of your channel and Thapa Technical
@TylerPotts
@TylerPotts 3 жыл бұрын
Woah that's awesome good luck with your career!
@ased4u
@ased4u 3 жыл бұрын
finally a dev who doesnt just ends project with console.log or with preventdefault in a beginner tutorial. Thank you man! Im totally new to coding. and your tutorial for forms is the first one that inculdes everything from a-z and as a newbie thats really important to me. keep up the good work. btw: the else statement wasnt working whenever i put conlos log in IF statement. i had to take it out to make it work.
@TylerPotts
@TylerPotts 3 жыл бұрын
Glad I could help!
@EstebanTobon-rv6lb
@EstebanTobon-rv6lb 2 жыл бұрын
I love this! It was so hard to find a simple video that can actually teach beginners! Thank you for providing an understanding on how to set this up!
@MP-mh1tu
@MP-mh1tu 3 жыл бұрын
I've seen many tutorials on the subject but this one is the absolute best one by far.
@noneyahbiz6976
@noneyahbiz6976 3 жыл бұрын
Thanks for this...this saved me LOL- Everyone else is throwing weird GUI crap in the dev of this so they really don't have to code anything in react- This is straight- thanks- I am subscribing :) for reals-
@mj2758
@mj2758 2 жыл бұрын
just a quick note you can use the CSS shorthand property INSET instead of "top right bottom left "
@stefanmasic1287
@stefanmasic1287 3 жыл бұрын
Dear Tyler. Thank you very much. It took me 3 hours and my Login definitely works. With no knowledge I would strugle throug React, TDD etc. Thanks, Štefan.
@TylerPotts
@TylerPotts 3 жыл бұрын
Glad it helped!
@yannickfonkeu701
@yannickfonkeu701 2 жыл бұрын
Merci beaucoup Tyler POTTS car avec ton explication dans cette vidéo on est en confiance de se lancer dans REACT js. Que DIEU te bénisse.
@TylerPotts
@TylerPotts 2 жыл бұрын
😁
@guitarholicz
@guitarholicz 2 жыл бұрын
This video is really a good stuff, I really enjoy and learnt from it. Thanks for this video.
@TylerPotts
@TylerPotts 2 жыл бұрын
Glad you enjoyed it!
@muhammadumarkhan2848
@muhammadumarkhan2848 3 жыл бұрын
Thanks a lot for a quick fast and easy to understand tutorial to get a startup. thought 1 would need basic React understanding before really diving into the login form tutorial. but once u have a basic understanding. this one is pretty much a piece of cake to understand.
@TylerPotts
@TylerPotts 3 жыл бұрын
Glad it helped!
@madhumathiravichandran1659
@madhumathiravichandran1659 2 жыл бұрын
Hey Tyler, your videos are amazing . Thank you for this simple and excellent steps.
@kashmirtechtv2948
@kashmirtechtv2948 3 жыл бұрын
❤️❤️❤️❤️❤️❤️❤️❤️❤️ If we can get some detailed understanding as well this will become best😍
@kamola9142
@kamola9142 2 жыл бұрын
Thanks a lot, very well explained👌👌
@TylerPotts
@TylerPotts 2 жыл бұрын
Happy to help
@andrewchen2349
@andrewchen2349 2 жыл бұрын
This is so helpful! Thank you so much for this tutorial!
@rahul7vlog
@rahul7vlog 3 жыл бұрын
easy and simple to understand , awesome work
@TylerPotts
@TylerPotts 3 жыл бұрын
Glad you think so!
@jinkisaragi8679
@jinkisaragi8679 2 жыл бұрын
Bro this is so much easy to understand, thank you for going step by step, just could you help me add a bit of comment in each function just so an newb like me didn't get messed up? I gotta reward a few time to get it all XD
@danavzaradel
@danavzaradel 3 жыл бұрын
6:22 well that's a nice trick I didn't know... great content, thanks a lot
@TylerPotts
@TylerPotts 3 жыл бұрын
Glad you liked it!
@chtsilva
@chtsilva 3 жыл бұрын
Thank you friend, from Brazil.
@TylerPotts
@TylerPotts 3 жыл бұрын
Welcome to the channel!
@lywatanak8594
@lywatanak8594 2 жыл бұрын
Thank for this videos admin 👍
@NanduKandula52
@NanduKandula52 2 жыл бұрын
Hey Tyler great video and lots to learn about especially for a new guy like me can you update where is the source code for this tutorial???
@TylerPotts
@TylerPotts 2 жыл бұрын
Thank you and sorry I no longer have the source code! 😅
@fehmiig
@fehmiig 2 жыл бұрын
hey bro, what is details? i cant use that. can u explain this parameter basically?
@Atstyle
@Atstyle 3 жыл бұрын
Great tutorial, I wonder what kind of extension you're using for the jsx tags auto-complete?
@ashaoluayanfe7474
@ashaoluayanfe7474 3 жыл бұрын
Prettier should do the work
@luigikart11
@luigikart11 3 жыл бұрын
settings >> extensions >> emmet >> "Include Languages" >> Add item (key: javascript, value: javascriptreact) :)
@mohanvaddi
@mohanvaddi 3 жыл бұрын
@@luigikart11 Thanks, It worked. :)
@edwardkevin8650
@edwardkevin8650 2 жыл бұрын
I learned a lot, thx so much !!!
@TylerPotts
@TylerPotts 2 жыл бұрын
Glad it was helpful!
@Pl-vw4wd
@Pl-vw4wd 2 жыл бұрын
Cool, but what if someone have more pages than one? When I change page it kick me out and I have to re-login.
@jbcastillo5129
@jbcastillo5129 2 жыл бұрын
Can I ask for help, cause when I tried to input else statement, I got error on it.
@Ayoutubeaccount3
@Ayoutubeaccount3 2 жыл бұрын
very well explained
@TylerPotts
@TylerPotts 2 жыл бұрын
Glad you think so!
@Maayan_1
@Maayan_1 2 жыл бұрын
Hi, work perfectly! thanks. what is the correct way to move on from login form to main/register page! Yuval
@butchiraju669
@butchiraju669 2 жыл бұрын
thanks bro it helped me a lot
@TheNamesJT
@TheNamesJT 3 жыл бұрын
How would you connect your backend? to your front end? if you coded the back-end login and registration already using mongodb, express? I already have endpoints for login and password I just don't know how to talk to the backend from the front end...
@TylerPotts
@TylerPotts 3 жыл бұрын
I would use Axios! www.digitalocean.com/community/tutorials/react-axios-react
@tufan7123
@tufan7123 2 жыл бұрын
Is there any background music in first few minutes?? or my headphone is not good....
@arpitprasad2249
@arpitprasad2249 3 жыл бұрын
Why do we have to destructure the details props in setDetails at 11:45?
@8wab0
@8wab0 2 жыл бұрын
It's really cool it helped me 💯
@TylerPotts
@TylerPotts 2 жыл бұрын
Glad to hear that!
@DevsLikeUs
@DevsLikeUs 4 жыл бұрын
Great tutorial.
@TylerPotts
@TylerPotts 4 жыл бұрын
Thank you!
@deanhome1
@deanhome1 2 жыл бұрын
is it possible to ty this into a backend using flask sqlalchemy & marshmallow fyi im a noob
@tsalisrosyadi1441
@tsalisrosyadi1441 3 жыл бұрын
You've got my attention, thanks for the video
@TylerPotts
@TylerPotts 3 жыл бұрын
You're welcome
@nailam4734
@nailam4734 2 жыл бұрын
Merci beaucoup pour cette vidéo et bonne continuation
@kashmirtechtv2948
@kashmirtechtv2948 3 жыл бұрын
Whu do we use form:after?
@ivanriverosgarcia8924
@ivanriverosgarcia8924 3 жыл бұрын
Amazing bro! Thank you very much
@TylerPotts
@TylerPotts 3 жыл бұрын
No problem!
@ameedk48
@ameedk48 2 жыл бұрын
Which vs code theme you are using?
@TylerPotts
@TylerPotts 2 жыл бұрын
Synthwave 84
@javimombiela6228
@javimombiela6228 2 жыл бұрын
what theme are you using?
@othmanetouri6354
@othmanetouri6354 2 жыл бұрын
what theme is that in vs code ?
@msuleman7786
@msuleman7786 3 жыл бұрын
Thanks, this is really helpful
@TylerPotts
@TylerPotts 3 жыл бұрын
I'm happy it is helpful, Suleman!
@gaurav8113
@gaurav8113 2 жыл бұрын
Hey Suleman! Are you a self-taught programmer and build projects to learn? If yes, please reach out to me so that we can discuss some interesting software development roles in latest technologies!
@ahmedchouihi
@ahmedchouihi 3 жыл бұрын
Thanks a lot, simple and exact
@TylerPotts
@TylerPotts 3 жыл бұрын
You're welcome!
@mariasohail2416
@mariasohail2416 Жыл бұрын
This is great! Where is the github link to this repo?
@thesimplypleasure4746
@thesimplypleasure4746 3 жыл бұрын
Great, But.. but.. but.. how to keep logged in, while the page is refreshed?
@beyondepicness
@beyondepicness 3 жыл бұрын
Hello sir how did you run them with the localhost
@hassanzafar4849
@hassanzafar4849 3 жыл бұрын
when i click out logout button after input the wrong then correct credentials it says details donot match how do i remove this
@Maayan_1
@Maayan_1 2 жыл бұрын
Hi, thanks for sharing your knowledge. I'm running through some issues, straight after writing the first line as you did I got on the app page this: ERR_CONNECTION_REFUSED and not showing anything. did I do something wronge?
@MrAsandler
@MrAsandler 2 жыл бұрын
what about routing ??
@mayankkandari6794
@mayankkandari6794 3 жыл бұрын
Great one
@paingoo1999
@paingoo1999 3 жыл бұрын
how do u make the border with gradient for the welcome page?
@herdiyanafirmansyah5155
@herdiyanafirmansyah5155 2 жыл бұрын
if i create in another file, that's work?
@nikhiltiwari1525
@nikhiltiwari1525 2 жыл бұрын
@tyler potts which color theme you use?
@priyankaroberts1093
@priyankaroberts1093 2 жыл бұрын
Hey Nikhil Have you created any projects in JavaScript frameworks? Are you interested in opportunities with regard to web development currently ?
@poornashreethirumalai3220
@poornashreethirumalai3220 2 жыл бұрын
how does it auto complete when he types in .form-inner or .form-group and the entire line appears? It doesnt auto complete for me? whats the solution?
@ritahung4470
@ritahung4470 2 жыл бұрын
try Ctrl+Shift+P and type "open settings" to open the setting.json then add line "emmet.triggerExpansionOnTab": true
@congtrongtran8701
@congtrongtran8701 2 жыл бұрын
code is easy to understand. tks
@anaghamulay5442
@anaghamulay5442 3 жыл бұрын
How to link another page like HomePage.js to the Submit button?
@kushagraaagnihotri1081
@kushagraaagnihotri1081 3 жыл бұрын
index.js:1 Warning: A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. HELPPP ME ANYONEEE!
@gaurav8113
@gaurav8113 2 жыл бұрын
Hey Kushagra! Are you a self-taught programmer and build projects to learn? If yes, please reach out to me so that we can discuss some interesting software development roles in latest technologies!
@abaabiilsuryawinata3604
@abaabiilsuryawinata3604 2 жыл бұрын
thanks mate
@TylerPotts
@TylerPotts 2 жыл бұрын
You're welcome!
@vanessagill8846
@vanessagill8846 3 жыл бұрын
This is so helpful, thank you
@TylerPotts
@TylerPotts 3 жыл бұрын
Glad it was helpful!
@esihazar1270
@esihazar1270 3 жыл бұрын
where can I found the actuall code
@hedgewizardly
@hedgewizardly 2 жыл бұрын
Thanks
@TylerPotts
@TylerPotts 2 жыл бұрын
Oh wow thank you!
@aazimsheikh279
@aazimsheikh279 2 жыл бұрын
Thanks, the form validation works amazing. I just wanna ask that when I logged in successfully, if I hit refresh it redirect to the login form again. What can I do so that it will stay on the page?
@priyankaroberts1093
@priyankaroberts1093 2 жыл бұрын
Hey Aazim Good to know that you like learning from these tutorials. Are you open to exploring opportunities in web development presently?
@aazimsheikh279
@aazimsheikh279 2 жыл бұрын
@@priyankaroberts1093 yes I am. If there's any please let me know
@priyankaroberts1093
@priyankaroberts1093 2 жыл бұрын
@@aazimsheikh279 Aazim could you kindly reach out to me using the contact details mentioned on my channel so that we can discuss it in detail ?
@priyankaroberts1093
@priyankaroberts1093 2 жыл бұрын
@@aazimsheikh279 Hey Aazim. Just following up. Are you still interested in the software development opportunity ? Kindly connect with me if you do!
@aazimsheikh279
@aazimsheikh279 2 жыл бұрын
@@priyankaroberts1093 yes, I am interested
@ramyakonujula5540
@ramyakonujula5540 2 жыл бұрын
while clicking on the login button - then in console i didnt get any parameters name email and password as empty field can anyone tell me plz how to solve this issue
@tijos98
@tijos98 3 жыл бұрын
what is this theme in VS? It looks nice
@karmapatel1477
@karmapatel1477 3 жыл бұрын
bro thanks for this video
@TylerPotts
@TylerPotts 3 жыл бұрын
No problem
@alizain3715
@alizain3715 3 жыл бұрын
does anyone at 11:56 why he used ...details why did he use the three dots..I am new :)
@OhBanq
@OhBanq 3 жыл бұрын
what extension did u use when u typed ".form-group"? Great tutorial btw!
@thomasfuckingshelby8466
@thomasfuckingshelby8466 3 жыл бұрын
me too idk why he can do it tell me plss
@hassanzafar4849
@hassanzafar4849 3 жыл бұрын
Its called VS Code ES7 React/Redux/React-Native/JS snippets and you have to write .formgroup and it will create the div automatically
@huynguyenngoc2556
@huynguyenngoc2556 2 жыл бұрын
u can retype the file to .jsx instead of .js
@paoxeroxe
@paoxeroxe 3 жыл бұрын
Still have bug of Error message: "Details do not match!"
@navyasreemallela4887
@navyasreemallela4887 3 жыл бұрын
yeah same doubt
@muhammadowais2873
@muhammadowais2873 2 жыл бұрын
thank you
@imrans.m6788
@imrans.m6788 3 жыл бұрын
please provide all the extension you installed in vs code
@phanluongcongthang5433
@phanluongcongthang5433 2 жыл бұрын
what theme vscode pls?
@Zorohere123
@Zorohere123 3 жыл бұрын
can we get that coading part as a file please
@TylerPotts
@TylerPotts 2 жыл бұрын
Sorry I don't have it anymore
@Pedro-yo4hr
@Pedro-yo4hr 3 жыл бұрын
Thanks for the video. What's the extension that allows you to write .classname to automatically turn it into JSX?
@TylerPotts
@TylerPotts 3 жыл бұрын
Thats just emmet! It's built into VSCode
@Pedro-yo4hr
@Pedro-yo4hr 3 жыл бұрын
@@TylerPotts oh, i see. it only works on my .css files, not on my .js files
@novanoskillz4151
@novanoskillz4151 3 жыл бұрын
@@Pedro-yo4hr you have to enable it
@hardwired66
@hardwired66 4 жыл бұрын
Love it
@muhammadfaiq8466
@muhammadfaiq8466 3 жыл бұрын
May i get the github repo for this tutorial?
@arpitprasad2249
@arpitprasad2249 3 жыл бұрын
in LoginForm.js what is that e in submitHandler function?
@priyankaroberts1093
@priyankaroberts1093 2 жыл бұрын
Hey Arpit Have you worked with any JS Frameworks recently ? Would you like to explore internship/job opportunities in web development ?
@emmanuelmadu7052
@emmanuelmadu7052 2 жыл бұрын
can i get thee css file link??
@Sharanagina
@Sharanagina 2 жыл бұрын
how to get the code
@SearchAndSolve12345
@SearchAndSolve12345 Жыл бұрын
great 🤗👍👍👍👍👍👍👍
@thepatternhub853
@thepatternhub853 2 жыл бұрын
thanks alot
@MP-mh1tu
@MP-mh1tu 3 жыл бұрын
what is yarn? doesn't work when I launch it
@tmajormajor6292
@tmajormajor6292 3 жыл бұрын
replace yarn with npm
@MP-mh1tu
@MP-mh1tu 3 жыл бұрын
@@tmajormajor6292 thank you
@muhammadmuqeet6472
@muhammadmuqeet6472 3 жыл бұрын
could you provide source code for this ?
@Mohammed-rx6ok
@Mohammed-rx6ok 2 жыл бұрын
Vscode theme name plz?
@amaechichisom787
@amaechichisom787 4 жыл бұрын
Great tutorial, can you attach the the link to the code
@XChriSBaTa24
@XChriSBaTa24 3 жыл бұрын
just do it!
@dipanjandas9463
@dipanjandas9463 2 жыл бұрын
I am a beginner. Please teach slowly and explain. I didn't understand the onChange part.
@moustachemen26
@moustachemen26 2 жыл бұрын
nicee
@ryanfrancisco8109
@ryanfrancisco8109 4 жыл бұрын
Do you have source code for this?
@ConsulthinkProgrammer
@ConsulthinkProgrammer 4 жыл бұрын
Use apps script for an alternative with database in google sheets
@wafafelahi2297
@wafafelahi2297 2 жыл бұрын
there is no source code plz ?
@NickNNME
@NickNNME 3 жыл бұрын
Hello, great video but im stuck, i keep getting an error, "Login is not a function"? at 10:00
@NickNNME
@NickNNME 3 жыл бұрын
solved
@mojomojo4668
@mojomojo4668 3 жыл бұрын
I have the same error as you corrected it
@mojomojo4668
@mojomojo4668 3 жыл бұрын
solved AJAJAJJA
@garlandrajasalan5076
@garlandrajasalan5076 3 жыл бұрын
@@NickNNME - may i know how you have solved it? Your response will help. THANK YOU
@NickNNME
@NickNNME 3 жыл бұрын
@@garlandrajasalan5076 I believe I just had a syntax error
@ipeksudegun688
@ipeksudegun688 2 жыл бұрын
where is the source code? please
@ramyakonujula5540
@ramyakonujula5540 2 жыл бұрын
can anyone share the link for this page
@priyankaroberts1093
@priyankaroberts1093 2 жыл бұрын
Hey Ramya Have you worked on any JS projects lately ? Are you open to opportunities in software development ?
@raghavendraps518
@raghavendraps518 Жыл бұрын
cool
@tjpendarvis5262
@tjpendarvis5262 4 жыл бұрын
You kind of sound like Anderson Webb lol
@fmikael1
@fmikael1 2 жыл бұрын
> What level of British are you ? Free
@TylerPotts
@TylerPotts 2 жыл бұрын
🤣🤣
@kalynndier6524
@kalynndier6524 3 жыл бұрын
I keep getting Login is not a function when adding Login(details) to the submitHandler on LoginForms. And yes, I've added Login as a prop to the LoginForm function. function LoginForm({Login, error}) { const [details, setDetails] = useState({name: '', email: '', password: ''}); const submitHandler = e => { e.preventDefault(); Login(details); }
@kaihengzhang5521
@kaihengzhang5521 3 жыл бұрын
Have you solved that? I got same one
@chromevox8723
@chromevox8723 3 жыл бұрын
i got this error when "Login, error" were not in {}, dont know whats the problem in your code
@noneyahbiz6976
@noneyahbiz6976 3 жыл бұрын
I got the same thing?? Whats up with that?
@noneyahbiz6976
@noneyahbiz6976 3 жыл бұрын
Oh hey I fixed it...passing a const in as a props sometimes messes it up so I took the props out...moved the entire code over to the LoginForm.js- function LoginForm() { const adminUser{} const [user, setUser] const [error, setError] const Login = details => blah blah blah const logout= const [details, setDetails] const submitHandler = e=> return( form) on the App.js just set up the routes to your LoginForm() import LoginForm from './componenet/LoginForm; import {Route } from 'react-router-dom'; function App() { return( )} export default App; and set your around the index.js
@josephawad4388
@josephawad4388 2 жыл бұрын
can you give use the code source please?
@TylerPotts
@TylerPotts 2 жыл бұрын
Sorry I no longer have the source code.
@QuickJourneyHub
@QuickJourneyHub 3 жыл бұрын
Dont you have github repo :O ?
@TylerPotts
@TylerPotts 3 жыл бұрын
Unfortunately not, I'll make sure future projects all have repos!
@SamratAkkinepally
@SamratAkkinepally 2 жыл бұрын
I couldn't understand without source code......please post source code link
Build an Income Tracker in ReactJS ~ useState, useEffect, useRef
29:05
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 100 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 32 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
React Hook Form - Complete Tutorial (with Zod)
28:22
Cosden Solutions
Рет қаралды 134 М.
Top 6 React Hook Mistakes Beginners Make
21:18
Web Dev Simplified
Рет қаралды 581 М.
NVIDIA’s New AI: Stunning Voice Generator!
6:21
Two Minute Papers
Рет қаралды 96 М.
Custom Hooks in React (Design Patterns)
12:56
Cosden Solutions
Рет қаралды 53 М.
React User Login and Authentication with Axios
31:37
Dave Gray
Рет қаралды 572 М.
BEST Ways to Handle and Validate React Forms without a Library
42:38
Using Forms in Next.js (Server Actions, Revalidating Data)
10:27
Add Login/Auth to your React app in 5 mins
13:36
CoderOne
Рет қаралды 299 М.
React Hooks Course - All React Hooks Explained
1:26:21
PedroTech
Рет қаралды 1,1 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 100 МЛН