Introduction To Styled-Componentsby@rahull
319 reads

Introduction To Styled-Components

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

styled-components is a CSS-in-JS library that helps you to write CSS in a component. You can write scoped CSS which means that CSS will apply only for that element in the component, with no spilling. It is a library which gives a lot of utilities that will map the props to your theme. It also makes you Component Oriented styles easy. To enable support for the CSS prop you have to use the Babel plugin. To use the prop to style the component without creating another styled component.
featured image - Introduction To Styled-Components
Rahul HackerNoon profile picture

@rahull

Rahul


Receive Stories from @rahull

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa