Every React Concept Explained in 12 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2024
  • My React course: reactbootcamp.dev
    Chapters
    0:00 - Intro
    0:11 - Components
    0:29 - JSX
    1:02 - Curly Braces
    1:29 - Fragments
    1:49 - Props
    2:20 - Children
    2:54 - Keys
    3:27 - Rendering
    4:34 - Event Handling
    5:05 - State
    5:54 - Controlled Components
    6:31 - Hooks
    7:21 - Purity
    8:03 - Strict Mode
    8:22 - Effects
    9:03 - Refs
    9:30 - Context
    10:10 - Portals
    10:41 - Suspense
    11:06 - Error Boundaries
    11:35 - Learn More
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 267

  • @AmineChM21
    @AmineChM21 หลายเดือนก่อน +627

    "class" to "className" isn't to make it camelCase as "class" is already camelCase. It's to avoid conflict with the JS keyword "class" for creating classes.

    • @eslamsami4986
      @eslamsami4986 หลายเดือนก่อน +21

      That's actually right

    • @seannewell397
      @seannewell397 หลายเดือนก่อน +10

      _solidjs enters the chat_

    • @szyszak
      @szyszak หลายเดือนก่อน +4

      You can't decalre a class inside JSX though. You can also use this seemingly reserved keyword between JSX tags, like class. React team can update their JSX parser to allow using the "class" and "for" attributes, but I guess it isn't really a pressing matter.

    • @nivethan_me
      @nivethan_me หลายเดือนก่อน +11

      @@szyszak when you write class you're telling put the string "class" inside a tag. when you want to escape into javascript world you need to use the brackets { } so try writing { class } now you'll get an error since class is a reserved keyword in javascript and React is just Javascript end of the day.

    • @bobwilkinsonguitar6142
      @bobwilkinsonguitar6142 หลายเดือนก่อน +6

      ​@@nivethan_me when you write className in JSX, you're doing it inside , which also should tell the parser you're not using the class keyword. It's an arbitrary change

  • @wass3411
    @wass3411 24 วันที่ผ่านมา +54

    Software Engineer using React daily for 6 years now and this is hands down the cleanest explanations of those concepts I ever saw. Sharing this everywhere.

    • @user-kk5cv1rs5r
      @user-kk5cv1rs5r 5 วันที่ผ่านมา

      it is clear for you because you were already working for six years on React

    • @ironialol7469
      @ironialol7469 วันที่ผ่านมา

      @@user-kk5cv1rs5r It was also very clear for me and I'm just learning React buddy :)

  • @anil4real_
    @anil4real_ หลายเดือนก่อน +150

    This is the most cleanest and concise explanation of react concepts ever

  • @gustavo-santos-dev
    @gustavo-santos-dev หลายเดือนก่อน +8

    Awesome content, as a backend engineer that is starting dealing with React, this is pretty straightforward and saved me a lot of time.

  • @RafaelBarbosa-yp9ii
    @RafaelBarbosa-yp9ii หลายเดือนก่อน +6

    Man, this was the best class I've ever had on everything I learned in programming. I already knew most of the concepts but the simple way you exemplified was excellent. I will watch your other videos.

  • @suyogmahangade8434
    @suyogmahangade8434 หลายเดือนก่อน +16

    Best video ever to brush up most of the react concepts 😊

  • @Omar-sr1ln
    @Omar-sr1ln หลายเดือนก่อน +46

    Never heard such a great round up of react , awesome vid man 👍🏻

    • @TheCodeBootcamp
      @TheCodeBootcamp  หลายเดือนก่อน +4

      My pleasure. Any more topics you'd like me to cover?

    • @knecks7374
      @knecks7374 หลายเดือนก่อน +1

      @@TheCodeBootcamp Can you do react advanced topics only. Like , proper advanced stuff that is often used too. Or maybe , as a second idea , a list of commonly used libraries and the like.

  • @TheDjTotzy
    @TheDjTotzy หลายเดือนก่อน +13

    Using index as a key is ok for rendering UI derived from an array that doesn't have to change the order of it's elements. But when you have an array that does change the order of it's elements you gotta use a unique key (usually the id of that data item coming from the DB)

  • @moustafamohsen
    @moustafamohsen 29 วันที่ผ่านมา +3

    I'm a senior Angular developer, but wanted a quick way to pickup React, and I have to say this video is amazing, it doesn't get hanged up on the details and explains the concepts with text and examples, along with the reasoning as to why it's implemented this way, in addition you referenced the most used common patterns which is a great touch
    Just a great video!

  • @AntonyJoseph-im9xq
    @AntonyJoseph-im9xq หลายเดือนก่อน +3

    This has to be the best react speed run ever means a lot bro thank you.

  • @Chillycloth
    @Chillycloth หลายเดือนก่อน +12

    Molim se da vaša velikodušnost prema nama bude nagrađena. Ovaj video je odličan poklon

  • @dikshantluthra5077
    @dikshantluthra5077 หลายเดือนก่อน +4

    great work man,I just revised react in 11 mins,Keep growing!!

  • @wajdwael8775
    @wajdwael8775 หลายเดือนก่อน +4

    You have a unique way of explaining things. Keep up the good work!

  • @Jai-xq5hi
    @Jai-xq5hi หลายเดือนก่อน +1

    Very smoothly explained and so clear and concise.

  • @visajpanchal6789
    @visajpanchal6789 หลายเดือนก่อน +12

    Damn, its my 3rd day of learning React and you already taught me a lot.!! What a great way to explain, so much easy explanation and best visuals

  • @agresywniePL
    @agresywniePL 28 วันที่ผ่านมา

    Awesome video. Especially for someone who worked with React before and needed some kind of refresh.

  • @bichaudjean-marc4948
    @bichaudjean-marc4948 หลายเดือนก่อน +14

    Learning React for 2 weeks. Your video really helped me to make sense of a lot of code in my project 🎉

  • @afrosoul4eva
    @afrosoul4eva หลายเดือนก่อน +1

    Damn this is the most clear explanation of React. Everything is on point.

  • @phpsoftwareengineering
    @phpsoftwareengineering หลายเดือนก่อน +2

    Great video! I love how you added a bit of Foley as well. 💯

  • @ThomasPGeorgeCSB-
    @ThomasPGeorgeCSB- 13 วันที่ผ่านมา

    The best video on React! Extremely clear and concise

  • @elsaman
    @elsaman หลายเดือนก่อน +2

    I love it. you have exceptional content creational skills

  • @VoiceHole
    @VoiceHole หลายเดือนก่อน +2

    lol i been teaching my self react for 2 years and this just put all the pieces together for me so well haha.

  • @bhargavkumar
    @bhargavkumar หลายเดือนก่อน +2

    Amazing video. Got me hooked. I think you should do this for other technologies as well, like Node & Express and Databases

  • @zNeoDev
    @zNeoDev 20 วันที่ผ่านมา

    This is the best React video I have seen on the internet since I've first learned React.

  • @abdullahmghazaal8695
    @abdullahmghazaal8695 9 ชั่วโมงที่ผ่านมา

    Thanks man a very clean and straightforward explaintions.

  • @dumolwenkosigwetu6943
    @dumolwenkosigwetu6943 หลายเดือนก่อน

    Your tutorial is so insightful Sir. Thank you so much.

  • @MuhammadBasurah
    @MuhammadBasurah 25 วันที่ผ่านมา

    watched this 1 time..
    will comeback for sure

  • @khaouitiabdelhakim
    @khaouitiabdelhakim 22 วันที่ผ่านมา

    Thank you so much for such a great video, you have explained almost every needed concept; keep it up bro

  • @princereyes5400
    @princereyes5400 หลายเดือนก่อน +19

    hope you could do something like this in data structures and algorithms.

  • @akshaypatelindia
    @akshaypatelindia วันที่ผ่านมา

    Thanks for really wonderful representation in simple terms would defiantly recommend your channel :)

  • @dvrk6140
    @dvrk6140 16 วันที่ผ่านมา

    I am happy about the memes used throughout the whole video more than the fact that this video helped me learn concepts i didn't get previously

  • @QuranProductions23
    @QuranProductions23 หลายเดือนก่อน +4

    Your videos are awesome ❤❤. Can you make more of these types of videos for other programming languages? I’m sure nobody has done what you’re doing. It’s remarkable 🎉🎉

  • @prajwalk6685
    @prajwalk6685 หลายเดือนก่อน +1

    wow awesome explantion of all react concepts in a simpler way . Please also make a video on next JS also

  • @phpsoftwareengineering
    @phpsoftwareengineering หลายเดือนก่อน

    I also took a look at your course and it too looks excellent!

  • @maxkalashnyk3378
    @maxkalashnyk3378 หลายเดือนก่อน

    I very rarely leave comments on TH-cam but it’s the best video about basics of React. Thank you!

  • @graphixafa3180
    @graphixafa3180 หลายเดือนก่อน

    Complete React Tutorial in less than 15 minutes. That's incredible.

  • @Sahil.1
    @Sahil.1 หลายเดือนก่อน +1

    As a dev who's getting his hand into react this video is piece of art

  • @VaibhavShewale
    @VaibhavShewale หลายเดือนก่อน +2

    well that was interesting a nice way to brush up some concept faster

  • @1337bitcoin
    @1337bitcoin หลายเดือนก่อน

    Using react again after 4 years and this was an awesome refresher!

  • @alii2284
    @alii2284 หลายเดือนก่อน

    This guy is underrated. Thank you man

  • @user-zx2hb4ld8w
    @user-zx2hb4ld8w 25 วันที่ผ่านมา

    very well summarized!

  • @subhayanbairagi510
    @subhayanbairagi510 หลายเดือนก่อน

    Really happy to have you back , looking forward for more content , love from india

  • @Filaxsan
    @Filaxsan หลายเดือนก่อน

    Cool stuff brother! 💪🔥

  • @2012jhon
    @2012jhon หลายเดือนก่อน

    Beautifully Discribed.

  • @SULTAN-db3fq
    @SULTAN-db3fq หลายเดือนก่อน

    We need more videos like this one

  • @user-th2cp8uh8r
    @user-th2cp8uh8r 4 วันที่ผ่านมา

    Im in love of these kind of presentations of concept. I watched a lot of videos like these(every religion explained, every ideology) and its actually a good way.

  • @siyapandey8799
    @siyapandey8799 หลายเดือนก่อน

    Really great explanation ❤

  • @amranimohamad4741
    @amranimohamad4741 หลายเดือนก่อน

    like the teaching style keep it UP!!

  • @almatnarmatov
    @almatnarmatov 26 วันที่ผ่านมา

    bro this is the best tutorial on react

  • @orlando_kawaii
    @orlando_kawaii หลายเดือนก่อน

    This is actually pretty gooodd

  • @pavelgordon6669
    @pavelgordon6669 หลายเดือนก่อน

    Very helpful, thank you!

  • @jeffgathumbi3559
    @jeffgathumbi3559 2 หลายเดือนก่อน +4

    glad to see y back.

  • @donaldpetervicente8351
    @donaldpetervicente8351 28 วันที่ผ่านมา

    this content explains well .. more vid to watch.. its refresh my knowledge on react and js again. 😁

  • @hijazi479
    @hijazi479 หลายเดือนก่อน +27

    00:01 Understanding React Components and JSX
    01:36 Passing Data in React Components
    02:58 Key prop in React for component identification.
    04:28 React uses reconciliation to update the DOM and manage events using event handling and state.
    05:58 Controlled components provide predictable behavior
    07:31 React components purity and usage of strict mode
    09:00 Using Context and Portals in React
    10:32 Tools like Create Portal and Suspense enhance React components.

    • @TheCodeBootcamp
      @TheCodeBootcamp  หลายเดือนก่อน +2

      Thanks for this. Just added chapters.

  • @arhabersham
    @arhabersham หลายเดือนก่อน

    Loved this ❤

  • @20s_football61
    @20s_football61 หลายเดือนก่อน

    That ownsome vid man !!!

  • @agmwpomewg
    @agmwpomewg หลายเดือนก่อน

    Thank you for awesome video 🙏
    NextJS please

  • @aaronward9140
    @aaronward9140 หลายเดือนก่อน

    great video, would be great to see this exact same video but for vue

  • @wlockuz4467
    @wlockuz4467 หลายเดือนก่อน +9

    Never use indexes as keys, it can lead to behaviours that are very hard to debug, especially if the underlying list is modified.

    • @omagadavid9923
      @omagadavid9923 หลายเดือนก่อน

      What can we use instead

    • @wlockuz4467
      @wlockuz4467 หลายเดือนก่อน

      @@omagadavid9923 for all practical cases, for example users, products, posts etc. there should be some unique identifier already present, so you should always use that.

    • @tigabumunaye9778
      @tigabumunaye9778 หลายเดือนก่อน

      I use crypto.randomuuid

    • @samibhadgaokar2326
      @samibhadgaokar2326 หลายเดือนก่อน

      Then what is alternative for index as key

    • @KarthicRaghupathi
      @KarthicRaghupathi หลายเดือนก่อน

      You should never iterate over an iterable that will be modified. You must create a copy of the iterable for the loop and modify the original iterable separately.

  • @manthanpatel8409
    @manthanpatel8409 หลายเดือนก่อน

    Amazing video 👏🏻

  • @uniq6318
    @uniq6318 หลายเดือนก่อน

    Awesome buddy❤

  • @MrxyzOfcl
    @MrxyzOfcl หลายเดือนก่อน +1

    Need: "Every Svelte Concept Explained in 12 Minutes"
    Thanks❤

  • @rabiulhasannayan8220
    @rabiulhasannayan8220 หลายเดือนก่อน

    just here to say you...i comment really occasionaly.... and this video..as a react developer..i understand...you realy a great great developer.

  • @toleenhajkassem6154
    @toleenhajkassem6154 9 วันที่ผ่านมา

    Thank you so much !

  • @tanw89
    @tanw89 หลายเดือนก่อน +2

    This is great! Could you do one for NextJS please?

  • @zariusspritee
    @zariusspritee หลายเดือนก่อน

    thank you for such a clear and concise information . i owe you a coffe good sir.

  • @tamis5908
    @tamis5908 หลายเดือนก่อน

    Absolutely FABULOUSLY clean and understandable explanation - KUDOS! Please provide a link to your Bootcamp site in your vid description details above!!🙌🙏🙏🙏

  • @Student-lj9qh
    @Student-lj9qh หลายเดือนก่อน

    By this video i cleard my unbroken dought help full

  • @chiranthchiplunkar3608
    @chiranthchiplunkar3608 หลายเดือนก่อน

    Awesome explanation🔥🔥👏👏.

  • @iancarr3923
    @iancarr3923 หลายเดือนก่อน

    Excellent - especially for the older geezer!

  • @frankie_goestohollywood
    @frankie_goestohollywood 15 วันที่ผ่านมา

    Love your video!
    @5:41 - Should the update function inside of the handleClick function be setLikes, instead of setClicks? Thank you 🤓

  • @weiweicoding
    @weiweicoding หลายเดือนก่อน +22

    3:19 If possible, it is not recommended to use index as key, good video!!

    • @heyyounotyouyou3761
      @heyyounotyouyou3761 หลายเดือนก่อน +1

      Why?

    • @eee012
      @eee012 หลายเดือนก่อน

      @@heyyounotyouyou3761the key is meant to tell react reconciliation when an item in a list changes so it doesn’t need to do rerenders on items which haven’t changed. If your list changes order then the index is not reliable as a key.

    • @afonsopimenta
      @afonsopimenta หลายเดือนก่อน

      @@heyyounotyouyou3761 React uses the "key" prop under the hood to know which elements were kept the same and which ones were added/removed in the next render when a mutation of the list happens. The problem with using index as the "key" is as follows:
      imagine we have a list containing the strings ["a", "b", "c," "d"], iterating over the list and giving them the index as the "key" prop would generate the following -
      lets say we remove the string "b" from the list, the map function would generate , as you can see, the elements with the text "c" and "d" now have different keys, so, instead of react knowing the element with the string "b" was deleted, it thinks the element with the string "b" was changed to have "c", the element with string "c" was changed to have "d" and that the "d" element was deleted.
      This makes react re-render 3 components unecessarily instead of just 1. This might not be a big deal for short lists, but for big ones, it's a huge performance loss.
      Hope this helps. And if you still don't understand, feel free to ask questions 😄

    • @al3xg.0
      @al3xg.0 หลายเดือนก่อน

      @@heyyounotyouyou3761 when you render a list of items that can be modified (for example by removing elements) the index will shift and you may see some inconsistencies on the page. If the key is based on a property of the item, then the behaviour is always consistent

  • @coderzafarjon
    @coderzafarjon 18 วันที่ผ่านมา

    Excellent!

  • @blackpinkdumplings
    @blackpinkdumplings หลายเดือนก่อน

    Best video ever 🎉

  • @ewaneewane4154
    @ewaneewane4154 หลายเดือนก่อน

    Great! Pretty clear

  • @milkdrom3da
    @milkdrom3da หลายเดือนก่อน

    As a MERN stack dev of 1 year...... I learned a lot today

  • @haricharanvalleru4411
    @haricharanvalleru4411 หลายเดือนก่อน

    Excellent explanation

  • @moviespalace17
    @moviespalace17 หลายเดือนก่อน +2

    On 5:42 the function handle click should have the setLikes method instead of setClicks

  • @sadik_farhan_
    @sadik_farhan_ 2 หลายเดือนก่อน +3

    Nailed It

  • @aryaman958
    @aryaman958 หลายเดือนก่อน

    well explained !! , Please create React projects as well

  • @marvelmaher5426
    @marvelmaher5426 หลายเดือนก่อน

    thanks, that is very useful video for me and very simple😍

  • @jessejames6216
    @jessejames6216 หลายเดือนก่อน

    Outstanding content 🎉

  • @capslock3250
    @capslock3250 หลายเดือนก่อน

    Amazing video. Thanks 👍

  • @SanketGanorkar-lb3xn
    @SanketGanorkar-lb3xn หลายเดือนก่อน

    Please bring more such content on nodejs and expressjs

  • @MrCrsistian
    @MrCrsistian หลายเดือนก่อน

    Great

  • @user-ii7xc1ry3x
    @user-ii7xc1ry3x 2 หลายเดือนก่อน +1

    Cool explaining

  • @justfun8525
    @justfun8525 หลายเดือนก่อน

    thanks best explaination

  • @ben-iz9pj
    @ben-iz9pj หลายเดือนก่อน

    With this videos, now I love more my htmx approach

  • @MRROBOT-fc5ny
    @MRROBOT-fc5ny หลายเดือนก่อน

    Amazing video!

  • @tigabumunaye9778
    @tigabumunaye9778 หลายเดือนก่อน

    Great explanation thanks

  • @luizfelipediniz5711
    @luizfelipediniz5711 หลายเดือนก่อน

    Aula mto boa professor! Imagino q o fato de enterrarem os antepassados na própria casa pode ter relação com oq vc falou no vídeo da Cidade Antiga, que a região era puramente familiar.
    Outra coisa interessante que pode ser pauta de um vídeo futuro é a relação entre a monogâmia, o patriarcado e a revolução agrícola. Até onde eu me lembro, sociedades pré agricultura não tinham muito claro esses dois conceitos sedimentados.

  • @Axorax
    @Axorax หลายเดือนก่อน

    Great video!

  • @prasad_vlog
    @prasad_vlog หลายเดือนก่อน +1

    hey buddy, thanks for such valuable video... 🙃

  • @INetreba
    @INetreba 19 วันที่ผ่านมา

    awesome!

  • @batek34
    @batek34 หลายเดือนก่อน

    Never in my wildest dreams would I have thought of seeing Dom from Broscience in a React video 😂😂

  • @avulavishwatejareddy4864
    @avulavishwatejareddy4864 หลายเดือนก่อน +1

    This video is awesome 👍
    By the way i guess there is a small typo at 5:48
    Setlike(likes+1)

  • @ivanlysko6677
    @ivanlysko6677 13 ชั่วโมงที่ผ่านมา

    I'm curious to know more about the React Portals hook. Could you provide some insights on how it works and its common use cases?

  • @vijayshankarcrypto5681
    @vijayshankarcrypto5681 13 วันที่ผ่านมา

    Nice video

  • @godofwar8262
    @godofwar8262 หลายเดือนก่อน +1

    One video on all concepts of typescript

  • @mrjelveh
    @mrjelveh หลายเดือนก่อน

    Wish there was similar video for Vue.js and Angular