Full React Tutorial #4 - Dynamic Values in Templates

Поділитися
Вставка
  • Опубліковано 9 чер 2024
  • In this React tutorial we'll see how to output dynamic values & variables using curly braces { } in our React JSX templates.
    🐱‍💻 🐱‍💻 Course Files:
    + github.com/iamshaunjp/Complet...
    🐱‍👤🐱‍👤 JOIN THE GANG -
    / @netninja
    🐱‍💻 🐱‍💻 My Udemy Courses:
    + Modern JavaScript - www.thenetninja.co.uk/udemy/m...
    + Vue JS & Firebase - www.thenetninja.co.uk/udemy/v...
    + D3.js & Firebase - www.thenetninja.co.uk/udemy/d...
    🐱‍💻 🐱‍💻 Helpful Links:
    + HTML & CSS Course - • HTML & CSS Crash Cours...
    + Modern JavaScript course - • Modern JavaScript Tuto...
    + Get VS Code - code.visualstudio.com/
    🐱‍💻 🐱‍💻 Social Links:
    Facebook - / thenetninjauk
    Twitter - / thenetninjauk
    Instagram - / thenetninja

КОМЕНТАРІ • 109

  • @shubhang2877
    @shubhang2877 3 роки тому +72

    Ive watched him so much that I say "Alright then gang" with him

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

      Hahahaha! Same here, I even talk to my fam like that... 😅

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

      😂

  • @belzeebub6022
    @belzeebub6022 3 роки тому +26

    The best react tutorial series on the internet no cap, such a great teaching with concept instead of using big words with no use , thank you sir for this.

  • @sandrinjoy
    @sandrinjoy 3 роки тому +35

    I will be joining this channel when i get i my first job. This guy here is teaching me a lot from the past 2 years ❤

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

    Best React Tutorial on UA-cam with Clear Concepts. Thanks The Net Ninja from my deepest heart.

  • @dannyman2200
    @dannyman2200 3 роки тому +17

    This video is the perfect example of how understanding the basics is pivotal- I've understood how Props have worked for a while now, but I didn't get how simple it was until this video, it's just made React all fit into place for me. Thanks again Shaun another great playlist!

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

      Thanks Danny 😃

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

    My fav sifu coder... Finally... Thank u for your time to make this for us.. 🙏

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

      My pleasure 😊

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

    This is the best react tutorial on the internet. When I started learning React from other resources, I did not understand much and rather it was confusing, but you helped me clear my doubts and concepts. You have the best way of explanation, easy and simple. Thanks a lot 😊😊😊.

    • @NetNinja
      @NetNinja  Рік тому +2

      Great to hear that Yuvraj! :)

  • @csereal100
    @csereal100 8 місяців тому +1

    Finally someone who can explain and teach React ! Thanks🤘

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

    I love his enthusiam it's infectious !

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

    I've learned a lot from your Modern JavaScript course on udemy. Thank you Shaun for making it easy to understand.

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

    Hi Shaun, thanks for taking the time again for creating this updated React tutorial. The previous ones were already great. Expectations are thus high for this new series. :-)

  • @rin0422
    @rin0422 2 роки тому +2

    Hello, if you remember me I comment on your CSS tutorial and after that I came here to learn React because I have knowledge on js but not pro and I was amazed. You explained every single detail the react can do
    Thank you so much Shawn or Sean whatever your name is called sorry. You really teach well and the professor from my school is no match from you.

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

    I love your exlanation your are among many the best teacher of REACT I learn a lot with you and in a simple english.

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

    The best explanation , easy, simple. Thanks again!

  • @BizzaroBrainBoi
    @BizzaroBrainBoi 8 місяців тому

    This is probably the most important 1st video a beginner needs -- after setting up all of react of course. Awesome video, and what a nice man for taking the time to show us the basics. THANK YOU!

    • @NetNinja
      @NetNinja  8 місяців тому

      Awesome, thank you for your kind words! :)

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

    So far so good. I just started your tutorial. Your presentation is perfect.

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

    this modern recap for react is so refreshing :D

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

    This tutorial is expended my horizon !!!

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

    This is by far the best react tutorial I’ve watched! Thank you!

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

      Wow, thank you! :) glad it was helpful

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

    I'm actually watching all the ads just for your sake ❤️ the least I can do for you

  • @chertsfieldminos2881
    @chertsfieldminos2881 Рік тому +1

    Good lessons with vivid examples which arise my motivation of study 😊

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

    Short Clear Useful => Amazing Tutorial!

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

    Oh no! I got to the 4th one and you haven't uploaded the rest! I know it's Christmas, but I hope you can. Enjoying it so far!

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

    Working with Shaun as usual, watching TheNetNinja as usual ...

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

    Shaun, your videos are perfectooooo

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

    really nice. i wanna learn react from a long time

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

    You are the Best. Thank you so much!!

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

    Hi Shaun I make it sure to come and like your new videos. Every video is value addition to your courses here in UA-cam.

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

      Thank you so much!

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

    thanks for this amazing course sir

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

    Passing classes with this Senpai. A-ni-ga-to....

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

    Great explanation thank you sir :-)

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

    Tnx For Basic Information ❤️

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

    Recap
    we can assign numbers, strings, etc to variables and output them within curly braces in template, it is called dynamic value. for example:
    const greetings = 'hello world'
    const num = 50
    { greetings }
    { num }
    we can also output data directly inside curly braces such as
    data { 10 }, string { 'hi, there ! },array { [1, 2, 3, 4, 5] }, or evaluation { Math.random() * 10 }, etc.
    we can also assign dynamic value to attribute, for instance,
    const link = '.google.com.tw'
    about

  • @yagami-light
    @yagami-light 2 роки тому +6

    you can't print object but you can definitely retrieve the object's value such as { person.name } or { person.age }

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

    Absolutely love and learning a lot from this series!
    What's the frequency of upload going to be? By when can we expect this series to end?

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

      PS:Not asking coz I want it to end asap, just wanna know the timeframe, cant wait to see myself come out as a React ninja by the end of it :P

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

    i didn't know before that i'm able to print arrays like what you did I used to loop on them , Thanks sir

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

      This was just an example. For a better overview you should loop through the array.

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

    Nice workshaun

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

    you my man. are awesome.

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

    Great stuff! Will you have the full course on Udemy?

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

    i have just subscribed for your awsome teaching and accent

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

    Hi Shaun, thanks for this great tutorial. Are there any member specific courses or content? I want to join your channel.

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

    Is there a need for Redux with so many new features in React relating to state management, what's your opinion ?

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

    great video man

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

    Great video. How did you comment at 2:35 with briskly?

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

    Thank you sir

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

    I have one Problem not in these Serie but with Reac-Native I will tell you more next Thank you so much

  • @luyolopondo9934
    @luyolopondo9934 9 місяців тому

    Nice simple🙂

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

    I've been watching your tutorials for years here on youtube or on udemy and they are always to the point and well organized. But strange thing is that Yoshi is still 30 :)))

  • @Se.mu01
    @Se.mu01 3 роки тому

    Thanks 🙏

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

    Thanks sir

  • @Mahmudulhasan-ts5hm
    @Mahmudulhasan-ts5hm 3 роки тому

    thanks

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

    Very good 🤠

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

    Master shifu 🐰

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

    I got a question. Why should we write the js code before the return value if we can just write it inside our div directly ? Couldnt we just write "Welcome to the new blog" above the "hello, ninjas"? why do the extra step?

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

    Will you be releasing a full react course on udemy?

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

    You can output object values, for example.. {person.name}, correct?

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

    Sir please teach redux saga too please

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

    Thank you for this! How many more videos are going to be released?

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

      Hey Jomar, there will be a total of 32 videos in this course :)

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

      The Net Ninja thank you again Shaun! Looking forward to the complete release

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

    You can't render the person object but you can render it's data by doing something like {person.name}

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

    is there a functional reason you put a space before and after the inputted variable in the curly braces? or is it purely for aesthetics?

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

      It's just for readability and 'aesthetics'.

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

    ty.

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

    When I save the file the formatting goes skew. I have to go and physically change with settings select language, how do I get VScode to detect react?

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

    one key point is React (JSX) ignores boolean & falsy values like null & undefined. Nothing is printed to the screen in that case.
    you can print boolean values using value.toString() in that case boolean is converted to string & printed on screen.
    or use String(value), this one can also be used for undefined & null.

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

    In Django we use block title and block body.. How can we get same functionality in react???

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

    Any future React course on Udemy, Shaun?

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

    the net ninja is #1

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

    what is the dynamic value here which you are taking about??...is it the value that is written and understood in java script??

  • @PriyanshuRaj-oc4tk
    @PriyanshuRaj-oc4tk 3 роки тому

    nice

  • @ardavural4649
    @ardavural4649 Місяць тому

    I hope the whole tutorial is detailed like that and still valid in 2024.
    Maybe you can specify it in the comment section if it is still valid in 2024 or you can tell us the things that are changed.
    Thank you for the video tho!

    • @NetNinja
      @NetNinja  Місяць тому

      The main concepts are still relevant but there could be some syntax changes :)

  • @mtsurov
    @mtsurov Рік тому +1

    I dont know how many times i clicked on that pending VS-Code update on your screen, ... thinking that its mine.

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

    Hello Shaun , at 2:20 it shows error for you on the web page but for me it's displaying an empty web page and if I open the console to check for any errors then I can see the error you got over there . Why is it not visible on the webpage and is visible in the console ??
    Please do reply . I wasn't able to figure it out until I opened the console .

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

    Sir, where can I download the JS server?

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

    Why my react app not displaying the error?

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

    Ninja i need to know who is yoshi.. Seen in all tutorials xD 😁😁

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

    mern stack next?

  • @RustamRustamov-eu1dv
    @RustamRustamov-eu1dv 5 місяців тому

    I was surprised when you used the word "yoshi" because this word also exists in Uzbek and it means age 😂😂

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

      Haha, I had no idea - brilliant!

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

    Anyone getting a blank page for the error?

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

    but aren't arrays objects? The part where ninja is going over dynamic variables inside of { }. So this must be a React thing because in javascript arrays ARE Objects so by rights arrays shouldn't work inside { } got me scratching my head a little..

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

    2:23 can not output Object, boolean

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

    After searching for tutorials and listening to various popular channels on this subject, I have came to settle on yours. Why? It's because you don't rush or speak too quickly, you speak at a pace I can code alongside. You also cover the material really well, but not at a level that's out of scope for the level being taught.
    Thanks

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

    Hello Việt Nam

  • @lomonsols8905
    @lomonsols8905 2 дні тому

    who's here in 2024

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

    Flutter