paint-brush
Why you should keep your react components pure by using HOCsby@DjamelH
3,104 reads
3,104 reads

Why you should keep your react components pure by using HOCs

by Djamel Hassaine4mApril 24th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Building front-end apps these days involves a lot of complexity. Gone are the days when some html sprinkled with a bit of jQuery would cut it. Today we want responsive, rich, dynamic single page apps (<strong>SPA</strong>) that can work on a vast array of devices and browsers — this is no easy task. Luckily we have powerful frameworks and libraries that can help us. In this article I show how decomposing state from the presentational layer can both reduce complexity and promote code re-use with some <a href="https://facebook.github.io/react/" target="_blank">React</a> examples— a win-win situation helping to tame the challenges of developing SPAs. Although I’m using React, the lessons are universal and can apply to any <a href="https://hackernoon.com/tagged/framework" target="_blank">framework</a>.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Why you should keep your react components pure by using HOCs
Djamel Hassaine HackerNoon profile picture
Djamel Hassaine

Djamel Hassaine

@DjamelH

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite