Тёмный

Michael Jackson - Composing Behavior in React or Why React Hooks are Awesome 

React Loop
Подписаться 546
Просмотров 20 тыс.
50% 1

github.com/mja...

Опубликовано:

 

7 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@SaSha-hb5rq
@SaSha-hb5rq 3 года назад
Good talk, now I can really grasp the concept of middleware
@mattmazzola
@mattmazzola 5 лет назад
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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-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)
@sagivbengiat6190
@sagivbengiat6190 5 лет назад
MJ is great, as always
@EricBishard
@EricBishard 5 лет назад
I really enjoyed his and Tylers talk! Hooks Hooks Hooks...
@uidotdev
@uidotdev 5 лет назад
@@EricBishard ❤️
@adamdreier
@adamdreier 3 года назад
Amazing that my campus director works for him.
@electronicaamigusto
@electronicaamigusto 5 лет назад
Made my day!
@tonybrown7847
@tonybrown7847 5 лет назад
that was awesome!
@adebiyial
@adebiyial 3 года назад
Nice.
@hussainshaik4390
@hussainshaik4390 5 лет назад
but is not it over complicating things just like higher-order components?
@DrewSpencer
@DrewSpencer 3 года назад
I believe hooks are designed to remove the need for higher-order functions and render props. Happy days!
@harshitjoshi3082
@harshitjoshi3082 3 года назад
which theme is that ?
Далее
React Hook Pitfalls - Kent C. Dodds - React Rally 2019
27:11
Harley Quinn is amazing.  #cosplay #joker#Harriet Quinn
00:11
🍎 Apple Pie Cinnamon Roll Donut #Shorts
00:21
Просмотров 2,3 млн
Why React Hooks?
14:04
Просмотров 175 тыс.
Goodbye, useEffect: David Khourshid
26:01
Просмотров 234 тыс.
Using Composition in React to Avoid "Prop Drilling"
15:42
Matthew Gerstman - TypeScript: Seeing Past the Hype
26:31
You might not need useEffect() ...
21:45
Просмотров 163 тыс.
React Component Patterns 
by Michael Chan
15:12
Просмотров 72 тыс.