Code Sketched
Code Sketched
  • Видео 89
  • Просмотров 580 274
Why do we even need something like Redux with React? State management 101
In this video we look into the need for a state management solution like Redux with React in 2024.
If you liked this video, check out my whole React playlist here:
ruclips.net/p/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI
If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sign up for the FREE CodeSketched newsletter:
codesketched.substack.com/
Codesketched site:
www.codesketched.com/
More info about me:
www.kapeelkokane.com/
Background music used in this video 👇🏾
--------------------------------------------------------------
♪ Onion (Prod. by Lukrembo)
Link : ruclips.net/video/IX281u8ZIPE/видео.html
--------------------------------------------------------------
Просмотров: 2 984

Видео

This animation is not as complicated as it looks!
Просмотров 1,5 тыс.11 месяцев назад
In this video, we dig into a component from the Aceternity UI page that replicates the effect on this animation on the Google gemini page. We recreate this using Next.js, Tailwind and Framer motion. Here'e the link to the GitHub repo: github.com/kokanek/framer-animations Here's the link to the Aceternity UI page: ui.aceternity.com/components/google-gemini-effect Chapters in this video: 0:00 - I...
Do you understand the subtle difference between these two React concepts?
Просмотров 1,6 тыс.Год назад
In this video, we delve into the useMemo React hook after getting to know the code hooks in the previous videos. We also explore React.memo() and learn how it works in conjunction with the useMemo() hook. If you liked this video, check out my whole React playlist here: ruclips.net/p/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI If you like hand-drawn illustrations and 2-3 frontend dev resources every week...
React's missing piece: How useEffect hook saves the day!
Просмотров 1,7 тыс.Год назад
In this video, we will look into the need for the useEffect hook. Understanding how React creates a problem (due to the way it is designed) and how it then goes on to solve the problem. If you liked this video, check out my whole React playlist here: ruclips.net/p/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sig...
Understand the need for context API in React
Просмотров 1,5 тыс.Год назад
In this video, we look into the useContext() API that React provides us and see how it compares to the useState API. Check out our other popular videos: If you liked this video, check out my whole React playlist here: ruclips.net/p/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sign up for the FREE CodeSketched ne...
This React hook will help you understand how React works
Просмотров 632Год назад
In this video, we look into the useState() hook in React that lets us manage and work with state. We look at the differences between directly modifying the state versus using the API that React provides us. Join the CodeSketched newsletter to get stuff like this in your inbox 👇🏾 codesketched.substack.com/ If you liked this video, check out my whole React playlist here: ruclips.net/p/PLTkAV9HwDL...
A React.js crash course in under 8 minutes!
Просмотров 2 тыс.Год назад
This video will teach you about the React.js library if you are a beginner getting started with it or even an intermediate developer who has decent experience with it. If you liked this video, check out my whole React playlist here: ruclips.net/p/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sign up for the FREE ...
Why React had to create a whole new markup language?
Просмотров 3,5 тыс.Год назад
In this video, we take a look into how React created a brand new paradigm with JSX and how that ushered a new age of frontend development. If you liked this video, check out my whole React playlist here: ruclips.net/p/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sign up for the FREE CodeSketched newsletter: code...
The Magic of React's Reconciliation: Behind the Scenes with a Microsoft Frontend Developer
Просмотров 25 тыс.Год назад
In this video, we look into the famous reconciliation algorithm that separates React from the rest of the frameworks. Here are the references used for the video: legacy.reactjs.org/docs/faq-internals.html legacy.reactjs.org/docs/reconciliation.html If you liked this video, check out my whole React playlist here: ruclips.net/p/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI If you like hand-drawn illustratio...
Things you didn't know about re-rendering in React
Просмотров 43 тыс.Год назад
In this video, we will look into when a React component actually re-renders. Here's the aticle by Josh Comeau that goes more deep into this: www.joshwcomeau.com/react/why-react-re-renders/ If you liked this video, check out my whole React playlist here: ruclips.net/p/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then ...
Understanding this React concept will make you a pro React developer!
Просмотров 30 тыс.Год назад
In this video, we understand what the term "rendering" actually mean in React. If you liked this video, check out my whole React playlist here: ruclips.net/p/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sign up for the FREE CodeSketched newsletter: codesketched.substack.com/ Codesketched site: www.codesketched.c...
What are classes in JavaScript? | CodeSketched
Просмотров 3252 года назад
What are classes in JavaScript? | CodeSketched
What is Prototype in JavaScript? | CodeSketched
Просмотров 4,2 тыс.2 года назад
What is Prototype in JavaScript? | CodeSketched
Working with Map and Set in JavaScript | CodeSketched
Просмотров 5342 года назад
Working with Map and Set in JavaScript | CodeSketched
Throttling and Debouncing explained with Examples | CodeSketched
Просмотров 1,1 тыс.2 года назад
Throttling and Debouncing explained with Examples | CodeSketched
What exactly is the Event Loop in JavaScript? | CodeSketched
Просмотров 4,6 тыс.2 года назад
What exactly is the Event Loop in JavaScript? | CodeSketched
How to create our own Map and Filter method implementations in JavaScript? | CodeSketched
Просмотров 7062 года назад
How to create our own Map and Filter method implementations in JavaScript? | CodeSketched
Understand blockchain by building one! | CodeSketched
Просмотров 5552 года назад
Understand blockchain by building one! | CodeSketched
Call, Apply and Bind methods in JavaScript | CodeSketched
Просмотров 4052 года назад
Call, Apply and Bind methods in JavaScript | CodeSketched
git failed to push some refs to | git push command explained
Просмотров 12 тыс.2 года назад
git failed to push some refs to | git push command explained
Understanding the 'this' keyword in JavaScript | CodeSketched
Просмотров 4362 года назад
Understanding the 'this' keyword in JavaScript | CodeSketched
Build your own Blog/Portfolio site with Docusaurus | CodeSketched
Просмотров 1,7 тыс.2 года назад
Build your own Blog/Portfolio site with Docusaurus | CodeSketched
Inheritance in JavaScript | CodeSketched
Просмотров 5292 года назад
Inheritance in JavaScript | CodeSketched
Why is there a Strict Mode in JavaScript? | CodeSketched
Просмотров 1,3 тыс.2 года назад
Why is there a Strict Mode in JavaScript? | CodeSketched
Understanding closures in JavaScript | CodeSketched
Просмотров 5712 года назад
Understanding closures in JavaScript | CodeSketched
Understanding Scope in JavaScript | CodeSketched
Просмотров 8863 года назад
Understanding Scope in JavaScript | CodeSketched
The JavaScript operator that you might not be aware of
Просмотров 2613 года назад
The JavaScript operator that you might not be aware of
The difference between event.target and event.currentTarget in JavaScript | CodeSketched
Просмотров 2,8 тыс.3 года назад
The difference between event.target and event.currentTarget in JavaScript | CodeSketched
Why Next.js is the next big thing in web development!
Просмотров 4473 года назад
Why Next.js is the next big thing in web development!
Why you should learn TypeScript right now | CodeSketched
Просмотров 9383 года назад
Why you should learn TypeScript right now | CodeSketched

Комментарии

  • @adrian.thoenig
    @adrian.thoenig 7 дней назад

    Fuck this is awesome, saved me so many hours, thanks man

  • @vh5x7
    @vh5x7 12 дней назад

    Wow, amazing!👽🖖

  • @rajanikantsingh3160
    @rajanikantsingh3160 18 дней назад

    great brother...

  • @mdtahmidhossain8710
    @mdtahmidhossain8710 Месяц назад

    your real voice is much more better than this

  • @jay_wright_thats_right
    @jay_wright_thats_right Месяц назад

    I can't understand your accent.

  • @KeshariPiyush24
    @KeshariPiyush24 Месяц назад

    Answer to the question.....so basically we are passing the filtered array as the prop to the List Renderer. Because the return type of the expensive function is array (which is passed by reference) whenever on each render the expensiveFunction() is recalculates it creates new array that has different memory address from the original one so since the reference is changed so is the props change even though the new array is exactly same in the value the reference is different. If it were some primitive type like number/boolean etc, the child would not have been re-rendered. We can prevent this unncessary re-render by wrapping the expensive function in useMemo() hook.

  • @harshyadav1214
    @harshyadav1214 Месяц назад

    not understood anything.

  • @EverythingIsMathandPhysics
    @EverythingIsMathandPhysics Месяц назад

    Awesome explaination. Please create react coursee and Typescript courses

  • @HusharainaMatalu
    @HusharainaMatalu 2 месяца назад

    Please do that in your real voice

  • @greggfineguitar
    @greggfineguitar 2 месяца назад

    createElement returns a plain JavaScript object, not a JSON object

  • @sardarzain1066
    @sardarzain1066 2 месяца назад

    I take 0s when you say that smash thumbs up button because I learn from this little pretty video ❤❤❤

  • @sakethannimalla1733
    @sakethannimalla1733 2 месяца назад

    Great content, but would've preferred your own voice instead.

  • @dailyPractice1
    @dailyPractice1 2 месяца назад

    In my today's interview, Interviewer gave me same scenario question and asked if child component will re-render or not.

  • @princekumarasstar7226
    @princekumarasstar7226 2 месяца назад

    Make video on redux

    • @CodeSketched
      @CodeSketched 2 месяца назад

      I already have one. Please check channel page.

  • @CryptoBlockchainTechnologies
    @CryptoBlockchainTechnologies 2 месяца назад

    What does this have to do with a merkle root? Is a merkle root even necessary to create a genesis block?

  • @fatimaiqra2169
    @fatimaiqra2169 2 месяца назад

    thanks

  • @adityadhayfule
    @adityadhayfule 3 месяца назад

    Bro, I have one question, currently I am working on react project, in that suppose there are different pages, homepage, aboutPage, contact page, the routes are like Homepage-->Aboutpage, when I goback to Homepage from Aboutpage it re-renders entire Homepage, the child component inside Homepage handles multiple fetch/api request, since Homepage gets re-renders it again call the api, is there any way to prevent component from unmounting? (something like Keepalive from vue.js)

  • @ayushsinha5512
    @ayushsinha5512 3 месяца назад

    I found GOLD 🔥🔥

  • @cthinkzz
    @cthinkzz 3 месяца назад

    We can do this with useContext also right? What's the advantage of redux?

    • @CodeSketched
      @CodeSketched 3 месяца назад

      If you write something to the context from a component, only the components below it have access to that, not the ones above it.

    • @robert-m6u7d
      @robert-m6u7d 3 месяца назад

      @@CodeSketchedthe same applies to Redux. I don’t see your point.

  • @abdullaahmad5503
    @abdullaahmad5503 3 месяца назад

    Why should we use redux when we have context hook which is built into react and serves the same purpose.

    • @CodeSketched
      @CodeSketched 3 месяца назад

      It's difficult to write to the context from child components. Even if you do, the parents don't have access to it

    • @abdullaahmad5503
      @abdullaahmad5503 3 месяца назад

      @@CodeSketched Can you make a video regarding the differences between the two for better understanding?

  • @gintokiblade1448
    @gintokiblade1448 3 месяца назад

    Good Explanation. Would love more react vids

    • @CodeSketched
      @CodeSketched 3 месяца назад

      Which topics do you want me to cover?

  • @zen.ali238
    @zen.ali238 3 месяца назад

    It's bad that you used generated voice than your real one

    • @CodeSketched
      @CodeSketched 3 месяца назад

      Just a matter of convience. Is there any specific issue with it?

    • @zen.ali238
      @zen.ali238 3 месяца назад

      @@CodeSketched It's fast for me and when i did 0.75x then it gives pure Robotic vibe and another thing with 1x it doesn't give that teaching vibe, it's bit hard for me to explain what i feel with robotic voice but when it's real voice behind it gives human brain to human brain knowledge supply, it isn't case with robotic voice.

    • @gibber1sh-c6w
      @gibber1sh-c6w 3 месяца назад

      @@CodeSketched Nothing wrong with AI voices, imo. You just need to find a more human-sounding AI voice.

    • @CodeSketched
      @CodeSketched 3 месяца назад

      Got it. Thanks for the feedback.

    • @mr.unknown6179
      @mr.unknown6179 3 месяца назад

      ​@@CodeSketched your real voice is much more better than this

  • @abhaytiwari5991
    @abhaytiwari5991 3 месяца назад

    Finally 😄

    • @CodeSketched
      @CodeSketched 3 месяца назад

      Hope it was worth the wait :)

    • @abhaytiwari5991
      @abhaytiwari5991 3 месяца назад

      @@CodeSketched ya it is worth it please bring more

  • @indian-shorts9215
    @indian-shorts9215 3 месяца назад

    Propes are nothing just argument to function components

  • @tushar8133
    @tushar8133 3 месяца назад

    Please share the stackoverflow link that you mentioned in the video. Thanks!

  • @poojaschannel9110
    @poojaschannel9110 3 месяца назад

    Dont speak fast

    • @shubham_v
      @shubham_v 3 месяца назад

      Watch at 0.75 speed. Don't complain.

  • @najeemfasil5199
    @najeemfasil5199 4 месяца назад

    you are a gem

  • @RahulYadav-o4b3r
    @RahulYadav-o4b3r 4 месяца назад

    Fucki*n awesome

  • @8bitkalangaming304
    @8bitkalangaming304 4 месяца назад

    explained very well bro. after long hour's of search i find out a good explanation🌟🌟🌟🌟

  • @iscxii6415
    @iscxii6415 4 месяца назад

    explained so easily such a complex looking problem!!

  • @adityanavgire9118
    @adityanavgire9118 5 месяцев назад

    yes, bragging rights😆

  • @ramnaresh_8
    @ramnaresh_8 5 месяцев назад

    thank you, you've cleared this, it was bothering me for so long❤

  • @sushmahegde6171
    @sushmahegde6171 5 месяцев назад

    can you please make a video on how webpack works.. where does this huge json lies? At the end index.html refers bundled js file and that will be converted into DOM right?

  • @rincyphilip5011
    @rincyphilip5011 5 месяцев назад

    JSX stands for Javascript XML

  • @balu_zoro
    @balu_zoro 5 месяцев назад

    U have any for explanation of code(visually appealing text for a post)

  • @Monishreddy-l2k
    @Monishreddy-l2k 6 месяцев назад

    Amazinggg explanation man

  • @aayushxhhetri1344
    @aayushxhhetri1344 6 месяцев назад

    lets say i have a const currentTime = new Date() below the count state and i try to render it <p>Current Time: {currentTime.toLocaleTimeString()}</p> in place of testcomponent ... then when i click the increament button the date also updates and shows the current date and time at the moment the button is clicked ..now you said that it wont happen because of virtual dom and it only renders the elements that is being updated but here this is no the case.. Can you explain why???

    • @Someguy-vl7dj
      @Someguy-vl7dj 6 месяцев назад

      He said it won't happen because if the virtual dom doesn't change, it doesn't send any change to the dom, but in your case, the virtual dom changed because "currentTime.toLocaleTimeString()" returned a different value.

  • @sivaganesh4489
    @sivaganesh4489 6 месяцев назад

    Please don’t stop posting videos. You’re gem dude

  • @littlechange
    @littlechange 7 месяцев назад

    The animated character you are using doesn't look good at all and that weird mouth movement doesn't help as well. I suggest don't use it at all or find a better alternative .... It's just a suggestion from me.

  • @Ari-uw1io
    @Ari-uw1io 7 месяцев назад

    Great Explanation !

  • @Isagi__000
    @Isagi__000 7 месяцев назад

    That's a hella good explination man.

  • @leheisenberge
    @leheisenberge 7 месяцев назад

    Thank you so much sir!! You are hidden en gem🙏💖

  • @aunshkasrivastava4301
    @aunshkasrivastava4301 7 месяцев назад

    Amazing explanation

  • @wishmeheaven
    @wishmeheaven 7 месяцев назад

    Teaching is a talent that not everyone have. Teaching good is even more rare and you absolutely have this talent. I really appreciate your approach and I wish you will provide more content for more concepts (e.g. ssr, caching, rehydration, etc). Other content idea is teaching libraries such as the Tanstack products (router, table, qusry). Anyway, thanks a lot and good luck!

    • @CodeSketched
      @CodeSketched 7 месяцев назад

      Thanks a lot for the kind words. :)

  • @wishmeheaven
    @wishmeheaven 7 месяцев назад

    Awesome. Thank you..

  • @akram5960
    @akram5960 7 месяцев назад

    array.reduce(reducefn, 0) The second arg. should be 0, only if the acc of reducefn will be 0. Else, acc will be the first element of an array.

  • @minalchimankar6606
    @minalchimankar6606 8 месяцев назад

    Yes pls a deep dive video is needed

  • @minalchimankar6606
    @minalchimankar6606 8 месяцев назад

    Can you also add a video explaining the DOM, shadowDOM, and redux. Also how does the state gets passed to backend to store it in database.

  • @FaizanPinjari
    @FaizanPinjari 8 месяцев назад

    React.memo(List) component takes a prop List and when parent function Component re-render, it will rerun the function and it will rerun the expensive function coz it's not under useeffect. after the recompute it will get pass into list component and list component will take a updated props and hence trigger render. In this case useMemo will wrap the expensive function and watch if items and filter prop is receiving the update from it's parent or not.