About Me: I've been a professional web developer for just over 10 years now. I'm currently the lead web development instructor at Better Coding Aca...
For further actions, you may consider blocking this person and/or reporting abuse
Hi, 😄 May I know which software you used to record the videos. is it freeware. And did you used normal mobile headphones as mic ?
I use OBS to record the videos with an AT2020 mic :)
Actually I thought you are using some paid ones like
Camtasia
, But Good to hear that by using OBS your videos are clear. Have you configured some special settings in OBS ?Nope - OBS is really good. Since it's screen recording there really isn't too much variation in quality; it's more important to have a good microphone setup (something I definitely can improve upon 😁)
Other problems with HoC are,
It does not clearly identify the source of your data - you have no idea where
x
andy
come from :)They don't need to know, just like with Dependency Injection in Angular.
Drawing a similarity between Angular and React here isn't particularly beneficial.
In React, tracking down where a particular prop comes from within a nest of multiple HOCs is a huge pain and a massive code smell that Hooks has since addressed beautifully.
Aren't we talking about the dependencies of a component?
I don't know why it is necessary to know the source of a dependency inside a component.
this is very useful, thank you
You're welcome Nico!
youtube.com/watch?v=xiKMbmDv-Vw&fe...
However I choose Hooks, if I'm able to, I don't think your arguments on higher-order components are strong, as they had to be, anyway thanks.
Even though the codebase I'm working on right now is mostly with hooks, there are a couple of HOCs and render props thrown in. I think each of them have their appropriate use.