DEV Community

Cover image for src/.../styled.js - stairway to Styled-Component's CSS-in-JS heaven

src/.../styled.js - stairway to Styled-Component's CSS-in-JS heaven

Manuel Penaloza on January 08, 2019

Using a fabulous open source library like Styled-Components often comes with the nice effect of appreciating what you can do with it more and mor...
Collapse
 
mvasigh profile image
Mehdi Vasigh

styled really does have such a clever API. Good post and clear explanation!

Collapse
 
manpenaloza profile image
Manuel Penaloza

it definitely has.
thx Mehdi!

Collapse
 
chenge profile image
chenge

Looks nice and easy understand.

Is there a tutorial from zero?
How about CSS position?

Collapse
 
manpenaloza profile image
Manuel Penaloza

thx!

I highly recommend its "Getting Started" section (styled-components.com/docs/basics#...) to start with Styled Components.

Don't know exactly what you mean about CSS position. Can you clarify?

Collapse
 
chenge profile image
chenge

I've read your doc. I want to try on my mac but don't know how.

CSS position means set the position of component.

Collapse
 
aarongarciah profile image
Aarón García Hervás

Nice article!

Some constructive feedback: to make this post future proof, you can link to a GitHub file in a specific commit, for example github.com/styled-components/style...

This makes that all your links to GitHub files will work even if the master branch files are changed.

Cheers!

Collapse
 
manpenaloza profile image
Manuel Penaloza

great hint, thx!
updated the github links considering this.