Material UI Tutorial #7 - Text Fields

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 93

  • @ilkrsrc081
    @ilkrsrc081 3 роки тому +18

    When a single component from a library is better than all your previous hard-coded input fields.. This is amazing, thank you so much shawn

  • @gaddp
    @gaddp 3 роки тому +20

    It's always been difficult to learn Material UI off the docs because there is so much to learn at once. Thank you so much for your help. Such a big help.

  • @arthurazoubel5344
    @arthurazoubel5344 2 роки тому +7

    This is a MUI tutorial, of course, but the explanation on react states for handling the errors at the end was absolutely fantastic. So concise and clear at the same time! You don't know me, but I am an admirer of your teaching for quite some time now!

    • @NetNinja
      @NetNinja  2 роки тому +5

      Happy to hear that Arthur, and thank you for the kind words :)

  • @h1sname1sunknown
    @h1sname1sunknown 3 роки тому +3

    Wow, what a relief! I've struggled for two days before watching this.. Appreciate your help a lot!!

  • @maskman4821
    @maskman4821 3 роки тому +2

    This is a pretty solid course, I like the way Shaun handle form submission, implement it from scratch. For one thing Shaun forgot to bind the input value to title and details to make the form input works properly, but we can fix it by adding or ; Anyhow this is a great tutorial, thank you Shaun walking us through with step by step instructions and explanations, It is a lot of fun learning building user interface quicky and easily with popular and powrful CSS library / framework; but if you have a figma design, vanilla css is still your best friend !!!

  • @bibekkhatri
    @bibekkhatri 3 роки тому +9

    I love the way you explain things.

  • @mansurv8782
    @mansurv8782 3 роки тому +1

    Buddy, your course motivates me to learn English.
    And your voice is so friendly, thank you

  • @currojugando6585
    @currojugando6585 Рік тому +3

    Great video! , just a small thing, rows is deprecated, is better to use minRows={4} in this case. Thanks for your great content!

  • @AndyChamberlainMusic
    @AndyChamberlainMusic 3 роки тому +6

    for the bit at the end with setting the errors, a super concise way is to just use two lines:
    setTitleError(!title);
    setDetailsError(!details);

    • @RenoTKC
      @RenoTKC 3 роки тому +3

      Sadly not

    • @VisoBoard
      @VisoBoard 3 роки тому +2

      You can just do error={!title} and for details error={!details}. No need to create new states and if statements.

  • @francisfernando4605
    @francisfernando4605 3 роки тому +2

    So far so good mate. I'm following all your tutorials. I will know all about material UI at the end. Fingers crossed. I know how to customize the default theme as well thanks to you. Thank you so much for all the tutorials. With love from Sri Lanka.

  • @sushilbhardwaj6501
    @sushilbhardwaj6501 3 роки тому

    Best UA-cam channel to learn web developement, step by step

  • @aliomer9049
    @aliomer9049 3 роки тому +6

    The best teacher in the world 😆

  • @maskman4821
    @maskman4821 3 роки тому +8

    I would like to see Shaun create Nextjs + Prisma tutorial, Prisma seems a pretty solid and works pretty with all sorts of maintream frameworks such as Nexjts and it uses postgres (sq) as database, and it has visual cms that allows admins to enter data to the form input and making save easily, there are tons of cms database nowadays besides firebase and mongodb and they work seamlesly with Nextjs, prisma is one of them and we can learn postql which is another type of database. Hopefully Shaun consider create a tutorial series on this topic !!!

  • @FireWolff
    @FireWolff 3 роки тому +3

    You are explaining really well! Great job!

  • @rodrigobazanzurita4457
    @rodrigobazanzurita4457 3 роки тому

    Thank u men, I was lost, I sent you a hug from mexico!

  • @mhdanggierinovka596
    @mhdanggierinovka596 3 роки тому +2

    i've question, if we change the background color into black the textfield can't be seen.
    Any suggestion for change the color for the border of the textfield

  • @Drezz3
    @Drezz3 3 роки тому +1

    Ey, you're amazing! Thank you so much, I'm learning SO MUCH

  • @realtorBG
    @realtorBG 3 роки тому

    the Net Ninja is just the best

  • @yiannis_p
    @yiannis_p 2 роки тому +1

    Hey guys, this video is slightly out of date as the makeStyles functionality was dropped in Material UI 5. Just heads up

  • @sanazbahmani6447
    @sanazbahmani6447 3 роки тому +2

    What about using ternary operator like so:
    title === ' ' ? setTitleError(true) : setTitleError(false);
    details === ' ' ? setDetailsError(true) : setDetailsError(false);
    That also handles the issue.

    • @oscheka
      @oscheka 2 роки тому

      this works for me
      title === " " ? setTitleError(false) : setTitleError(true);

  • @mohammadhossein94
    @mohammadhossein94 Рік тому

    I learned tailwind from you one years ago and now material ui.
    but i wish this tutorial being update to the last version of the mui (v5.14.5). that would be great !

  • @ohad7
    @ohad7 3 роки тому +2

    I watched your videos, very professional and very helpful.
    You are a master !!
    Thank you for sharing

  • @alejandromartinezramirez3312
    @alejandromartinezramirez3312 3 роки тому +1

    Wow with you, material ui is easy to learn, could you teach how use with react-router-dom?

  • @roost3r950
    @roost3r950 3 роки тому

    Informative and straight to the point! :)

  • @jaday4230
    @jaday4230 Рік тому

    You have a great voice!!!! Thanks for the video

  • @AbdurRahman-rj9bv
    @AbdurRahman-rj9bv 3 роки тому

    Thanks For your awesome tutorial series.

  • @tamertamer9886
    @tamertamer9886 3 роки тому +8

    wow First comment
    Always like before watching

    • @NetNinja
      @NetNinja  3 роки тому +2

      Thank you so much 😀

  • @songsofmother4134
    @songsofmother4134 3 роки тому +1

    Looking forward to next series.
    Can you please make tutorial of Angular after this Material UI tutorial?

    • @maskman4821
      @maskman4821 3 роки тому

      Actually there is no need to learn Angular, because React and Vue dominates job markets these days, if you check angular github repo, the downloading info reveals its popularity is decreasing because of its complexity and typescript binding, so I suggest you cancel this idea and embracing the mainstream frameworks which is React/Next and Vue/Nuxt, and they make your life so much easy and making developing apps a lot of fun !!!

  • @pratikwadekar4981
    @pratikwadekar4981 3 роки тому +1

    In the typography section, I was not able to understand what is the use of variant and component. What is the exact use case there?

    • @maskman4821
      @maskman4821 3 роки тому

      variant is like different state, e.g. an anchor tag can have hover, foucs, active, visited states / variants, typography components has six states / variants~h1, h2, h3, h4, h5, h6, etc.

    • @VS257
      @VS257 3 роки тому

      @@maskman4821 Yeah but the typography component doesnt change anything except it gives them a different HTML tags in the console where as the variant prop ACTUALLY changed the font. The question imposed is: what is the use of changing the HTML tags by the component tag? Is it for CSS styling?

    • @maskman4821
      @maskman4821 3 роки тому

      @@VS257 yeah, you are right, component only assigns html tag different name and does nothing which I don't understand why 😂😂😂

    • @codewithfarhad8594
      @codewithfarhad8594 3 роки тому

      ​@@VS257 It is there to respect semantic html. For instance, suppose you want a heading to "look" like how "h5" looks in material UI default theme, but you need "h1" in your html just because it is heading and all of your other headings on the page are "h1". so in this case you would define your "variant" prop to be "h5" and your "component" prop to be "h1". as a result, your heading will now look like h5 but it will be rendered as h1 tag. so this way you get the style you want without breaking your (semantic) html

  • @RahulSharma-ke7wg
    @RahulSharma-ke7wg 3 роки тому

    awesome content,awesome tutor

  • @njengagilbert7477
    @njengagilbert7477 3 роки тому

    I'm trying to use an button click event and display certain logs on a textbox
    Is it possible? I am relatively new to this

  • @cerpogaming6746
    @cerpogaming6746 3 роки тому

    Thanks for this playlist. Just a question , why not just setTitleError( title == '' ) / setDetailsError ( details == '' ) ?

  • @aidaruldanov6210
    @aidaruldanov6210 3 роки тому

    Isn't it better to use a variable for storing errors instead of storing this in state? It looks to be an easier solution for me.

  • @kashmirtechtv2948
    @kashmirtechtv2948 7 місяців тому

    so will we be creating error state for each textfield???

  • @23b_namrathasairam82
    @23b_namrathasairam82 2 роки тому

    what if i want to add helperText to this? What will the condition for helperText be

  • @raphaeljaggerd3585
    @raphaeljaggerd3585 3 роки тому

    Have you used electron bruv??

  • @akhror-oshie
    @akhror-oshie 3 роки тому

    if needed to set helperText inside TextField in mui, helperText={emailError?"invalid input email":null}

  • @danielmihaylov185
    @danielmihaylov185 3 роки тому

    Why you don't put semicolons in the import rows ?

  • @liubaoying8748
    @liubaoying8748 2 роки тому

    man, why my error prop not giving red border effect ? how about yours ? always hard to replicate, even tho its so simple. where did I fuck up?

  • @kashmirtechtv2948
    @kashmirtechtv2948 7 місяців тому

    for just margin, why do we need to create a separate class??

  • @hitarthk.shukla5769
    @hitarthk.shukla5769 3 роки тому +2

    Please Make Series of MERN Stack.

    • @maskman4821
      @maskman4821 3 роки тому +1

      We don't need mern stack at all, people nowadays buid fullstack app with nextjs, check out Shaun's Nextjs tutorial series~ ua-cam.com/play/PL4cUxeGkcC9g9gP2onazU5-2M-AzA8eBw.html

    • @hitarthk.shukla5769
      @hitarthk.shukla5769 3 роки тому

      @@maskman4821 Thank You so much

  • @ismailnagi7755
    @ismailnagi7755 3 роки тому

    Please, can you do a tutorial on how to make a vs code extension like emmet. please.

  • @zakblacki
    @zakblacki 3 роки тому

    Thank you sensei ! Please make playlist next for Kotlin or C# sharp

    • @maskman4821
      @maskman4821 3 роки тому

      that is off topic, if you want to learn unity game development, there are tons of tutorials out there in youtube, I don't think Shaun would create such a tutorial series because it is not demanding, dude, get real 😂😂😂

  • @rajeshgowda8342
    @rajeshgowda8342 3 роки тому

    hi. can u exaplain how to customize in class component

  • @flaviorocha9804
    @flaviorocha9804 2 роки тому

    Iam, I'm getting errors using @mui/styles, because I've installed Material-ui V.5. Can you help-me with this please?

    • @Ishpa420
      @Ishpa420 2 роки тому

      import { styled } from '@mui/material/styles'
      const MyField = styled(TextField)({
      marginTop: 20,
      marginBottom: 20,
      display: 'block',
      })

    • @Basil_Porphyrogenitos
      @Basil_Porphyrogenitos 2 роки тому

      make sure you have it installed if not use
      npm install @mui/styles

  • @KodiLearn
    @KodiLearn 3 роки тому +1

    Can you please make MernStack course soon?

    • @maskman4821
      @maskman4821 3 роки тому +2

      We don't need mern stack at all, people nowadays buid fullstack app with nextjs, check out Shaun's Nextjs tutorial series~ ua-cam.com/play/PL4cUxeGkcC9g9gP2onazU5-2M-AzA8eBw.html

    • @KodiLearn
      @KodiLearn 3 роки тому +1

      @@maskman4821 Can we create Rest Api in Next Js?

    • @maskman4821
      @maskman4821 3 роки тому

      @@KodiLearn definitely yes, Nextjs api route is one of the powerful feature, it lets you create backend easily, and we can deploy our nextjs fullstack app to a single server, this is the best part !!!

    • @KodiLearn
      @KodiLearn 3 роки тому +1

      @@maskman4821 oh thanks for helping. I will look into that

  • @PitambarJadhav
    @PitambarJadhav 2 роки тому

    how to change placeholder color?

  • @koordszz
    @koordszz 2 роки тому

    useref don't work on mui components

  • @muhammadidrees8367
    @muhammadidrees8367 3 роки тому

    Many thanks :)

  • @energysold4330
    @energysold4330 3 роки тому

    Please make a pdo course

  • @srorrashad1069
    @srorrashad1069 3 роки тому

    Thank you so much

  • @vuongqtvn
    @vuongqtvn 3 роки тому

    nice teacher

  • @johnconnor9787
    @johnconnor9787 3 роки тому

    Material UI + Formik.... Please :)

  • @martunjaykumar752
    @martunjaykumar752 3 роки тому

    Thanks Man...

  • @Kevin-gn8sw
    @Kevin-gn8sw 2 роки тому

    thank you!!!

  • @mossasameer3338
    @mossasameer3338 3 роки тому

    Next.js E-commerce with mongo

  • @petrucciamine39
    @petrucciamine39 3 роки тому

    Think you!

  • @karjanieluj3135
    @karjanieluj3135 2 роки тому

    setTitleError(title === '') should be enough

  • @muhammadaadil3546
    @muhammadaadil3546 3 роки тому +2

    I don’t like material ui ... before these tutorials

    • @maskman4821
      @maskman4821 3 роки тому +2

      yeah, me either, I have watched plenty of material-ui tutorials before Shaun releases this series and to be honest I actually don't understand what they are talking about !!! 😅😅😅

  • @NoumanKhan-ck7vx
    @NoumanKhan-ck7vx 3 роки тому

    Best

  • @ItsStocks
    @ItsStocks Рік тому

    Love from pakistan

  • @tomasburian6550
    @tomasburian6550 5 місяців тому

    This is like 10% of what text fields do. How about numbers? I haven't seen anyone make a tutorial on how to handle number inputs and that information is severely lacking.

  • @ridl27
    @ridl27 3 роки тому

    ty

  • @sfdeveloper4361
    @sfdeveloper4361 7 місяців тому

    Supb

  • @abdelhamidnoira853
    @abdelhamidnoira853 3 роки тому

    first xD

  • @ohad7
    @ohad7 3 роки тому +4

    I watched your videos, very professional and very helpful.
    You are a master !!
    Thank you for sharing

    • @maskman4821
      @maskman4821 3 роки тому

      Shaun is not only a Ninja Master, but in real life he is a terrific teacher, and that's why people loves his tutorials because he knows how to teach !!! 🤩🤩🤩

  • @arjay_2002
    @arjay_2002 3 роки тому

    ty

  • @michalnowak2181
    @michalnowak2181 Рік тому

    thx