Great video! Seeing this pattern of composing hooks and clarity of explanation by MJ reminded me of his previous video explaining benefits of "render prop" pattern to as opposed to mixins or HoC. See: ruclips.net/video/BcVAq3YFiuc/видео.html Also I noticed he frequently did common code refactors and wanted to remind viewers who use VSCode the manual steps can be reduced. They have suggested refactor actions to extract selected code as method which reduce need to keep moving cursor and speeds up development. Example, creating custom hook from existing set of hook code. Create component A that uses native hooks to achieve behavior. You creating component B that would also benefit from behavior. You decide to make a custom hook and move code from A to a function so it can be used it A and B. This is now action to do this operation for you: code.visualstudio.com/docs/editor/refactoring#_extract-method (although I noticed it doesn't always preserve indentation and semicolons)
Good talk, now I can really grasp the concept of middleware
MJ is great, as always
I really enjoyed his and Tylers talk! Hooks Hooks Hooks...
@@EricBishard ❤️
Amazing that my campus director works for him.
Great video!
Seeing this pattern of composing hooks and clarity of explanation by MJ reminded me of his previous video explaining benefits of "render prop" pattern to as opposed to mixins or HoC. See: ruclips.net/video/BcVAq3YFiuc/видео.html
Also I noticed he frequently did common code refactors and wanted to remind viewers who use VSCode the manual steps can be reduced. They have suggested refactor actions to extract selected code as method which reduce need to keep moving cursor and speeds up development.
Example, creating custom hook from existing set of hook code.
Create component A that uses native hooks to achieve behavior. You creating component B that would also benefit from behavior. You decide to make a custom hook and move code from A to a function so it can be used it A and B. This is now action to do this operation for you:
code.visualstudio.com/docs/editor/refactoring#_extract-method
(although I noticed it doesn't always preserve indentation and semicolons)
Made my day!
that was awesome!
Nice.
but is not it over complicating things just like higher-order components?
I believe hooks are designed to remove the need for higher-order functions and render props. Happy days!
which theme is that ?