Writing Effective Higher-Order Components in React.js
Slava

Slava @vezyank

About: Senior FE @ LaunchDarkly. Previously Amazon, Airbnb.

Location:
Canada
Joined:
May 26, 2017

Writing Effective Higher-Order Components in React.js

Publish Date: Feb 3 '23
0 0

Many developers who experienced HOCs in the pre-hook era have been traumatized by the experience of data-provider HOCs and have stopped using them entirely as soon as they could.

I think that they were sworn off prematurely, and that there is room for them as long as you avoid using them in the wrong places.

I wrote a list of conventions to follow, and things to avoid in order to write HOCs effectively.

Read it here: https://www.bbss.dev/posts/effective-hocs/

Let me know what you think!

Comments 0 total

    Add comment