CSS-in-JS

Writing component styles in JavaScript, where a library generates and injects the CSS while the page runs.

In more detail

CSS-in-JS made dynamic theming easy but costs JavaScript work in the browser on every render. CSS custom properties and utility classes achieve the same theming with plain CSS, which is why this course recommends them.

Related terms

Taught in

References