HOC Pattern in React

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024
  • 🚀 Project React → cosden.solutio...
    📥 Import React (Newsletter) → cosden.solutio...
    Article → www.patterns.d...
    Join The Discord! → discord.cosden...
    VSCode Theme | Font → Material Theme Darker | Menlo, Monaco "monospace"
    In this video we'll be going over and reading an article on the HOC pattern in React. The Higher-Order Component pattern is a pattern that has been around for many years in React and although it isn't used quite as much today as it was before, it still is a very important pattern to be aware of and to know when to use and when not to use!

Комментарии • 28

  • @emanoelinfinity
    @emanoelinfinity 12 дней назад +9

    This was just a reading. It would be interesting to have an explanation with more modern examples. Because this form is now considered a legacy.

  • @coder_one
    @coder_one 12 дней назад +5

    Reading this code without TS types is a torture....

  • @golden7877
    @golden7877 12 дней назад +2

    Since i discovered your channel i add your name to every youtube search i do,you are simply the best react tutor on youtube, keep up these videos!
    A video idea that i would love to see frrom you is " Migrating to typescript in react" where you explain why we use react with ts and all that related stuff.

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

      I have a JSX to TSX video actually! But will do more

  • @Vladyslav.L
    @Vladyslav.L 12 дней назад +17

    Bro literally reads an article on the video

  • @turgunov28
    @turgunov28 12 дней назад +4

    thanks mate for great video :)

  • @geforcesong
    @geforcesong Час назад

    seldom use this pattern

  • @BinaryBridge
    @BinaryBridge 11 дней назад

    A very good and informative content in a row

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

    Another pro for HOC is that you separate the concern of receiving data from rendering that data which makes the component easier to write and test. I still would prefer hooks in almost all cases but I think this point should have been mentioned in the article.

  • @regilearn2138
    @regilearn2138 12 дней назад +2

    Please do a video on Render prop pattern

  • @vigneshwaran456
    @vigneshwaran456 10 дней назад

    Can you post a video about cross browser compatibility.

  • @kartikkaushik4743
    @kartikkaushik4743 10 дней назад

    Coden will you also pls create the playlist on redux and redux toolkit?

  • @priopambudi9533
    @priopambudi9533 10 дней назад

    Hi, thanks for your video. I want to ask, is your project React course covered about middleware?

    • @cosdensolutions
      @cosdensolutions  10 дней назад

      Middleware isn't covered because we don't have a real backend! All of the data is mocked to make it easier for beginners to focus on the React part

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

    "Button" component needs to receive and use "style" prop

  • @SuriyaJ-u9h
    @SuriyaJ-u9h 10 дней назад

    after long time live web tab redux store are getting empty why?

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

    I want to test react app but i have "react router dom 6" i don't know how to test two libraries. I only starting to create tests

  • @Niamudeen
    @Niamudeen 8 дней назад

    Can you do a review of my react project bro? I just want to know what things I am lacking to level up.

  • @mister_n3510
    @mister_n3510 12 дней назад +1

    nice video

  • @shubhamgupta-bl1tr
    @shubhamgupta-bl1tr 11 дней назад

    Render prop pattern

  • @seanjonas5024
    @seanjonas5024 12 дней назад +1

    Hi

  • @RoksanaJahan-d4y
    @RoksanaJahan-d4y 11 дней назад

    Jones Gary Taylor Ronald Perez Shirley

  • @danielniels22
    @danielniels22 8 дней назад

    is this another word of Currying?

  • @PalladinGOLD
    @PalladinGOLD 7 дней назад +1

    Good chanell, but BAD video. You’re just reading. I think it would be better if you wrote the code with TS in IDE

  • @codehunter1366
    @codehunter1366 9 дней назад

    Aw, why you read article as always hehe