Using Facade pattern with JSX

Using Facade pattern with JSX

Even though the JSX resemble HTML at the first glance it is only the description of the expected UI and is not the UI by itself. What if we can use this fact and play a little with the JSX tags to make the HOC that will allow us to create similar repetitive components in our apps? I will present a small pattern that I found quite useful in one project for creating different users list.

B7925d83541996bbf8fbe0a3923a94d2?s=128

Olena Sovyn

June 20, 2017
Tweet