Recompose: Override Styles & Elements Types in React

Share this video with your friends

Send Tweet

When we move from CSS to defining styles inside components we lose the ability to override styles with an external style sheet. We also lose the ability add the same class to different types of elements to style them consistently. Recompose allows us to regain the ability of override styles and to apply the same styles to different types of elements.

Robert Kraig
Robert Kraig
~ 8 years ago

It seems like this could turn into a dangerous workflow. Where you share so much stuff from one component that everything eventually becomes brittle based on only a few different components. Change the primary one break everything. It feels like it mostly just helps you bring the kitchen sink with your components.