“The basic idea of styled-components is to enforce best practices by removing the mapping between styles and components.”
Styled-Components are part of CSS-in-JS movement where we can create components that possess their own encapsulated styles.No longer we need to create component decide on a selector and then rush to app.css or any other stylesheet to write separate styles for that particular component. What makes Styled-Components so cool is their awesome tagged template syntax that allows to create normal react components by only defining styles.With zero configuration styled-components support css modularity, variables in css, nesting in css, extending components styles and many more. Styled Components also allows us to write plain CSS in your components without worrying about class name collisions
Who this course is for:
Everyone who wants to learn Styled-Components
Rating: 5.0 out of 5a year ago
This is my second class from this instructor. He explains things well, using examples that mimic real world cases. He repeats his explanations often, which helps me to understand and retain what is being taught. I enjoyed learning about styled components.