正在加载视频...

视频加载失败

❌ Avoid mixing business logic with your React components. ✅ Instead create abstraction layers that communicate with them.

214,951 次观看 • 2 年前 •via X (Twitter)

10 条评论

George Moller 的头像
George Moller2 年前

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics just like this one. Check them out ↓

George Moller 的头像
George Moller2 年前

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics just like this one. Check them out ↓

Dev Mamba 的头像
Dev Mamba2 年前

That's a very nice example of using custom hooks! Custom hooks are a powerful way to encapsulate logic and reuse it across different components, making our code more efficient and easier to maintain. Well done!

George Moller 的头像
George Moller2 年前

Thanks! glad you found it useful!

happydecoder 的头像
happydecoder2 年前

I do this everytime

George Moller 的头像
George Moller2 年前

Glad to read this, it will make changes in the future feel like a breeze 😎

Pavel Romanov 的头像
Pavel Romanov2 年前

I had a tough time with architectural topics when I was a new dev. Appreciate the content. It would be great to go into more depth so we can understand the reasoning behind these abstractions

George Moller 的头像
George Moller2 年前

Makes sense Pavel! will try to make more content around this. The main reasoning behind this abstractions is that loosely coupled modules/systems reduce the effort needed to make changes.

Sreehari jayaraj 的头像
Sreehari jayaraj2 年前

this is one of the best thing you should do while building react apps

George Moller 的头像
George Moller2 年前

Agree!

相关视频