Note that styled-components doesn’t render anything extra to the DOM, it’s just adds a wrapper…
Max Stoiber

Oh, quite true. I wrote this part down and didn’t double check the text. It does show the wrapper component in React inspector but doesn’t actually render anything extra to DOM.

My concern here was based on some previous experience. A perf issue might reveal itself after this kind of (wrapper component) library gets implemented. In my case it was a poorly designed wrapper component (or HOC). In some case it could be a poorly designed component which reveals a perf bug after adding Styled Components. It’s just something that should be taken into consideration.

Styled Components seem to get some momentum in the community so if any perf issues were to pop out I’m pretty sure those would be handled correctly. Either fixing the bugs in hand or guiding the developer to the correct direction.

Like what you read? Give Tommi Pääkkö a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.