CSS in Javascript

  • Styled JSX - gives reasonable style tags like Vue, scoped to just the current component. Unlike styled-components, you don’t need to define specifically-wrapped elements.
  • Styled-componentsstyled-components is probably the community forerunner, 26k stars
  • Alternately, write less CSS with Tailwind. See a good use of components in docs.


Avatar of Author

Jamie Macey is a senior software engineer with over 15 years experience in the Ruby and Rails ecosystems, largely on the back-end.

Husband, father, gamer, and all-around geek. Ask about my latest 3d print, or toy software project.