loading...
Cover image for Styled components shoud be in separated .js file?

Styled components shoud be in separated .js file?

jssantana profile image Jean Santana ・1 min read

When we use CSS, we have a separated file and import inside of.jsx component, but with Styled Components what is the best practice? Inside of component or outside?

Discussion

pic
Editor guide
 

emotion.sh/docs/introduction is quite nice, allows you to separate CSS from js quite well. It's like styled components but looks more flexible.