Every React Concept Explained in 12 Minutes

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 441

  • @wass3411
    @wass3411 7 місяців тому +628

    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.

    • @whatever-s3e
      @whatever-s3e 6 місяців тому +30

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

    • @ironialol
      @ironialol 6 місяців тому

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

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

      should've have tis video long time ago... when im learning at such micro level i just dont understand why its like this or that

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

      @@whatever-s3esounds like a skill issue here a lil bit

    • @jay_wright_thats_right
      @jay_wright_thats_right 5 місяців тому +2

      Umm, no. This is just a refresher for you. Put yourself in the shoes of a newbie. Y'all forget the beginning so easily.

  • @AmineChM21
    @AmineChM21 8 місяців тому +1337

    "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.

    • @dota2-plays-shorts
      @dota2-plays-shorts 8 місяців тому +57

      That's actually right

    • @seannewell397
      @seannewell397 8 місяців тому +32

      _solidjs enters the chat_

    • @szyszak
      @szyszak 8 місяців тому +9

      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 8 місяців тому +23

      @@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 8 місяців тому +8

      ​@@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

  • @anil4real_
    @anil4real_ 8 місяців тому +250

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

  • @RafaelBarbosa-yp9ii
    @RafaelBarbosa-yp9ii 7 місяців тому +19

    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.

  • @gustavo-santos-dev
    @gustavo-santos-dev 7 місяців тому +18

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

  • @Omar-sr1ln
    @Omar-sr1ln 8 місяців тому +75

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

    • @TheCodeBootcamp
      @TheCodeBootcamp  8 місяців тому +5

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

    • @knecks7374
      @knecks7374 8 місяців тому +2

      @@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.

  • @Chillycloth
    @Chillycloth 8 місяців тому +12

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

  • @AntonyJoseph-im9xq
    @AntonyJoseph-im9xq 7 місяців тому +5

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

  • @TheDjTotzy
    @TheDjTotzy 8 місяців тому +74

    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)

    • @jay_wright_thats_right
      @jay_wright_thats_right 5 місяців тому +4

      Don't be that guy. LOL. It's a 12 minute video, not a comprehensive video.

    • @mrhino
      @mrhino 5 місяців тому +21

      @@jay_wright_thats_right good information to know though, he's just adding on to the info from the video

  • @pixel8eddie
    @pixel8eddie 2 місяці тому +1

    This is a great resource for anyone learning React: accessible, concise, and fun. I just shared it with some devs on my team who have been learning React, and they found it the most helpful of everything else they've studied.

  • @eliteiel9747
    @eliteiel9747 3 місяці тому +6

    Ive been coding React for 4 years now and this is an amazing explanation of the entire thing, also love the humour from time to time, very well placed.

  • @moviespalace17
    @moviespalace17 7 місяців тому +153

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

    • @1mlister
      @1mlister 3 місяці тому +3

      Thank you. I thought it should be. I was just staring at the freeze frame trying to figure it out..

    • @EnigmaWebcraft
      @EnigmaWebcraft 3 місяці тому +3

      exactly am also thinking that and find someone also notice this....

    • @HamzaAli-i5i3q
      @HamzaAli-i5i3q 2 місяці тому +1

      Just came to comments to confirm this, thanks buddy ☺️

    • @aviver26
      @aviver26 21 день тому

      @@1mlister Same... I was confused for a bit there

  • @hijazi479
    @hijazi479 8 місяців тому +39

    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.

  • @moustafamohsen
    @moustafamohsen 7 місяців тому +13

    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!

  • @karolbielen2090
    @karolbielen2090 4 місяці тому +1

    You really must understand a topic deeply to be able to explain it so succinctly.

  • @visajpanchal6789
    @visajpanchal6789 7 місяців тому +16

    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

  • @JuuzouRCS
    @JuuzouRCS 2 місяці тому

    This is the best experience of learning React I've ever had! Months of practical knowledge easily digested in minutes!

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

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

  • @afrosoul4eva
    @afrosoul4eva 7 місяців тому +1

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

  • @suyogmahangade8434
    @suyogmahangade8434 8 місяців тому +23

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

  • @elisabete_costa
    @elisabete_costa 4 місяці тому

    I’m impressed. You were able to explain a lot of concepts in under 12 minutes. I would definitely recommend this video to someone just getting started with React. 👏

  • @wlockuz4467
    @wlockuz4467 8 місяців тому +14

    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 8 місяців тому

      What can we use instead

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

      @@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 8 місяців тому

      I use crypto.randomuuid

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

      Then what is alternative for index as key

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

      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.

  • @bichaudjean-marc4948
    @bichaudjean-marc4948 8 місяців тому +16

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

  • @VoiceHole
    @VoiceHole 8 місяців тому +2

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

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

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

  • @digitalClay
    @digitalClay 4 місяці тому

    Been studying React for 6 months now and I could have just watched this video. Essential and to the point thanks!

  • @dikshantluthra5077
    @dikshantluthra5077 7 місяців тому +5

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

  • @bhargavkumar
    @bhargavkumar 8 місяців тому +3

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

  • @srsh12345
    @srsh12345 5 місяців тому +1

    Great video. As somebody learning React and already familiar with some of these concepts, this really helped me grasp the bigger picture much faster. Thank You.

  • @Shashank-my1fv
    @Shashank-my1fv 3 місяці тому

    One of the finest React JS video explanation . Deserves a million views!!

  • @Jai-xq5hi
    @Jai-xq5hi 7 місяців тому +1

    Very smoothly explained and so clear and concise.

  • @anthony143
    @anthony143 2 місяці тому

    Wow! , As a Vue developer, I did not expect that React's concept is almost the same as in Vue but just a different syntax. I'm really excited to switch to React now since it has more job openings 😊.

  • @elsaman
    @elsaman 7 місяців тому +2

    I love it. you have exceptional content creational skills

  • @lukewood2662
    @lukewood2662 Місяць тому +1

    I didn't get to React yet, but I perfectly understood almost everything here. I guess focusing in getring a decent base in JS does works pretty well, huh...
    Anyway, awesome vid.

  • @user-th2cp8uh8r
    @user-th2cp8uh8r 6 місяців тому

    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.

  • @AustinTFordham
    @AustinTFordham 4 місяці тому +1

    You deserve a hug and some sort of reward like a medal or a cake.
    Thank you so much for posting this, I made the mistake of starting with ReactNative, so circling back to React is now easier thanks to you!
    Cheers!

  • @princereyes5400
    @princereyes5400 8 місяців тому +22

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

  • @dvrk6140
    @dvrk6140 6 місяців тому

    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

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

    This was a great explaination. Working with React for the past 3 years and this was a wonderful refresher for me and a great recap for new developers.

  • @himanshusehlangia
    @himanshusehlangia 3 місяці тому

    Please make more videos like this. These are very helpful for a quick revision during interviews.

  • @CodeNessa
    @CodeNessa 6 місяців тому +1

    Wow, thanks for the information! I really learned a lot from you. I am a React beginner, and this will help me complete my project. 🤓

  • @adalba.mp4
    @adalba.mp4 17 днів тому

    Nice video, great work. Just my two cents: I think that a more accurate definition of useEffect is that it actually controls the collateral effects of the component through the dependency array. Connect to external systems like an API call for example isn’t a good practice, being a better option to put it on another layer using custom hooks to manage this kind of data

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

    your explanation is already the cleanest i've ever read but i still lost focus at like 3mins😵

  • @weiweicoding
    @weiweicoding 8 місяців тому +25

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

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

      Why?

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

      @@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 8 місяців тому

      @@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 8 місяців тому

      @@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

    • @GreatTaiwan
      @GreatTaiwan 2 місяці тому

      Why???

  • @wajdwael8775
    @wajdwael8775 8 місяців тому +4

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

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

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

  • @zNeoDev
    @zNeoDev 6 місяців тому

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

  • @meghabathla7167
    @meghabathla7167 4 місяці тому +1

    He explained every concept precisely ❤

  • @jelanah_
    @jelanah_ 24 дні тому

    might be the best video ive ever watched

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

    watched this 1 time..
    will comeback for sure

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

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

  • @thislife1980
    @thislife1980 2 місяці тому

    The more I watch this, the more I appreciate vuejs.

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

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

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

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

  • @Q-Productions23
    @Q-Productions23 8 місяців тому +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 🎉🎉

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

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

  • @tochimclaren
    @tochimclaren 2 місяці тому

    I like how every react dev talk down on HTML whilst in fact they are writing HTML with extra steps.

  • @brittoarockiasamy8321
    @brittoarockiasamy8321 3 місяці тому

    00:01 React components are the building blocks of every React app
    01:36 Understanding how to pass data and components in React using props and children prop
    02:58 Key prop in React
    04:28 React uses reconciliation for updating the DOM and handling events.
    05:58 Controlled components ensure predictable behavior
    07:31 React components need to return the same output for the same input to maintain purity.
    09:00 Using ref for direct DOM manipulation and context for prop data passing
    10:32 Create portal and suspense can improve user experience.

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

    I love this explanation so much, I'm literally taking notes out of this video.

  • @Learning-w4c
    @Learning-w4c День тому

    Such a Great video!
    I spent a worth watching 12 mins
    Good stuff man!! Kudos

  • @uscjake868
    @uscjake868 6 місяців тому

    100% the best introductory video on youtube. Great job.

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

    bro this is the best tutorial on react

  • @lilyshevchenko7048
    @lilyshevchenko7048 6 місяців тому

    I nominate you for Javascript Peace Prize! That is hands down the most effective and succinct overview, plus the ironic use of comic sans and papyrus font made me fall in love! lol 😆

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

    Who the hell thought about Arthur's fist when discussing 'strict mode.' Hilarious stuff! 🤣🤣

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

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

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

    This is the greatest explanation of react that i have ever found. Thanks for your awsome video

  • @gunasekharkoppanati
    @gunasekharkoppanati 2 місяці тому

    Great video! Super concise and a quick way to level up React knowledge. Appreciate the clear explanations.

  • @tylermorales9043
    @tylermorales9043 3 місяці тому

    34 second in and I can already tell this is gold

  • @frankie_goestohollywood
    @frankie_goestohollywood 6 місяців тому +3

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

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

    Notes
    - React is a JS LIBRARY, not a framework.
    - COMPONENTS are the building blocks of React.
    They allow us to make all the visible parts of the app
    (bottons, inputs, entire pages etc). Every compontent is a
    JS function that returns JSX markup. JSX attributes come in
    camel case.
    - {curlyBraces} are used to pass JS PROPERTIES.
    - Only one PARENT ELEMENT can be passed to a component.
    Either pass everything inside a (or another HTML) tag or
    an EMPTY COMPONENT, a react fragment
    - PROPS are a way to pass data from one component to another.
    Props are passed in the component
    and are then used in the component you passed it to. Anything
    can be passed as props, including other components.
    export default function Component(props) {
    return (

    { props.text }

    );
    };
    - The KEY PROP is used so react can tell one component apart
    from another (usually when creating a list with .map).
    - RENDERING is the process of displaying and updating the UI.
    Rendering is done using the virtual DOM or VDOM.
    Document
    |
    HTML
    / \
    Head Body
    / \ / \
    Meta Title h1 h2
    1) If the state of the app changes, react updates the VDOM.
    2) Then, it uses diffing to compare the updated VDOM to a
    previous version of the VDOM.
    3) Once it sees what's different, it uses "reconcilication"
    to update the real DOM.
    - EVENTS are actions that occur in the browser, such as click,
    input, submit and focus.

    - EVENT HANDLING is how we take those events and do something
    with them. EVENT PROPS are passed to the HTML element.
    . />
    . />
    . />
    function Alert() {
    const handleClick = () => {
    alert('Clicked')
    }
    return (

    Click me!

    );
    };
    - We manage data in React using STATES, which are like
    snapshots of the app at any giving time. To manage states, we
    can't use JS variables since they don't cause the app
    rerender. Instead we use special functions like useState() and
    useReducer(). useState takes an argument that serves as the
    starting value of the state variable and returns an array
    containing the STATE VARIABLE and the function to update that
    state.
    const [ stateVariable, setStateVariable ] = useState(0);
    - CONTROLLED COMPONENTS are form elements (such as )
    whose value is controlled by the component's state. They use
    state values to have more predictable behaviour. Ex:

    function ControlledInput() {
    const [value, setValue] = useState('')
    return (
    setValue(e.target.value)}
    />
    );
    };
    1) The user types on the input, setValue is called and sets
    what the user typed into state.
    2) The state value is updated.
    3) The input uses the updatded state as its value.
    Controlled components are a great pattern to use because if
    we want to change the component's behavior, we just need to
    change the state that controlls it.
    - HOOKS are functions that allow you to use state and other
    React features in function components. useState is an example
    of a React hook. There are 5 main types of hooks:

    1) STATE HOOKS (useState() and useReducer()) - help managing
    state within components.
    2) CONTEXT HOOKS (useContext()) - lets you use data passed
    through context.
    3) REF HOOKS (useRef()) - lets you refernce things like HTML
    elements.
    4) EFFECT HOOKS (useEffect()) - lets you connect to external
    systems like APIs.
    5) PERFORMANCE HOOKS (useMemo() and useCallback()) - improves
    performance by preventing unnecessary work.
    useState(), useEffect() and useRef() are the 3 main hooks.
    - PURITY is a term used to describe how components should work.
    In a pure component, the same input always returns the same
    output. To keep a component pure, it should only return JSX
    and not change any objects or variables that existed before
    rendering. Example of an impure component:

    let count = 0
    function Cup() {
    count = count + 1 (*changed variable outside component*)

    return (
    Cup {count}
    );
    };
    - STRIC MODE is used to prevent errors. It's a special component
    that tells us about mistakes as we develop a React app. It's
    usually wraped around the component:


    import('./Component')
    );



    - ERROR BOUNDARIES are components that let you catch app
    breaking errors and show a fallback component to tell the user
    what happened. This is useful because React apps are all
    Javascript and errors that happen during rendering can break
    the app. Ex:
    function App({ user }) {
    if (!user) {
    throw new Error("No user data")
    };

    return {user.name};
    };

    This code will break the app when ran because it throws an
    error when there's no user.
    import { ErrorBoundary } from 'react-error-boundary'
    function Fallback({ error }) {
    return (

    No user provided:
    {error.message}

    );
    };



    To prevent the app from crashing, we add an ErrorBoundary to
    display a Fallback component in App.jsx with a more helpful
    message to be displayed to the user.

  • @ThomasPGeorgeCSB-
    @ThomasPGeorgeCSB- 6 місяців тому

    The best video on React! Extremely clear and concise

  • @stephenokpalaononuju6975
    @stephenokpalaononuju6975 2 місяці тому

    This is the most interesting comment section that I have come across on UA-cam!!!

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

    This guy is underrated. Thank you man

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

    Very simple and neat explanation.

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

    did an interview where they asked for an angular developer, repeated angular concepts, they instead asked me react and next js, i will not let them find me unprepared the next time

  • @lammmpo
    @lammmpo 5 місяців тому +1

    "It's much easier to reference the actual Dom element istead of attempting to do it the fuckn React way" I really apreciate this suggestion

  • @VaibhavShewale
    @VaibhavShewale 8 місяців тому +2

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

  • @phpsoftwareengineering
    @phpsoftwareengineering 8 місяців тому +2

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

  • @siam1991
    @siam1991 3 місяці тому

    Thanks for clearing this... i really loved how you explained it

  • @Applecitylightkiwi
    @Applecitylightkiwi 18 днів тому

    Very clean i use react for almost a year, if only you did this with nextjs aswell

  • @tapestryofgrace5
    @tapestryofgrace5 2 місяці тому

    Clear explanation! Excellent work here. Thank you 👏👏

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

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

  • @avulavishwatejareddy4864
    @avulavishwatejareddy4864 7 місяців тому +1

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

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

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

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

    This feels like a great argument for why you should just use HTMX

  • @reninmohan2303
    @reninmohan2303 4 місяці тому

    Now I can write react as skill in my resume

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

    We need more videos like this one

  • @arrietowski
    @arrietowski 6 місяців тому

    The Dom meme reference was really funny :D

  • @mostinho7
    @mostinho7 Місяць тому +1

    Todo continue from 5:30 already know prev concepts

  • @NeHaSingh-dw4pn
    @NeHaSingh-dw4pn 4 місяці тому

    Best explanation just looking for something like that to clear concept🎉

  • @swifty8bit
    @swifty8bit 4 місяці тому

    that is the best explanation of react's stuffs

  • @Mijdax
    @Mijdax 3 місяці тому +3

    can you do this for nextjs aswell or would it be the same

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

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

  • @ankgto
    @ankgto 4 місяці тому

    transition to Controlled Component bit abrupt - anyway thank you for your work

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

    Minor suggestion, in 10:07 I think you could have combined 2 and 3, as they are very close together, in addition they have different examples where the next step overrides the step behind it, which is always confusing for first timers to a new framework like me

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

      I'd optimize it like this next time,
      1. Create your context
      ```jsx
      const MyAppContext = createContext()
      ```
      2. Put data on value prop and Wrap the component
      ```jsx
      ```
      3. Access the data from the child
      ```jsx
      function Title(){
      const text = useContext(MyAppContext)
      return {text}
      }
      ```

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

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

  • @akshaypatelindia
    @akshaypatelindia 6 місяців тому

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

  • @nthiwafelix7967
    @nthiwafelix7967 9 днів тому

    Love the animation. Great work👍👍

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

    Since the introduction of hooks, React components are no longer pure. You cannot determine the outcome of a component solely based on the input properties, hooks bring internal state, an inherent property of OOP.

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

    I’m sure others have pointed it out but using the provided index as the key on react is not recommended, it can cause errors or holes if your array of values ever changes.