Express CSS with JavaScript Objects for CSS-in-JS Notation

InstructorOleg Isonen

Share this video with your friends

Send Tweet

When using JavaScript string templates to define styles in CSS-in-JS, there is a lot of interpolation syntax noise.

In this lesson, you will start with a CSS-in-JS string and walk through how to remove excess noise from the style declarations by using JavaScript Object Notation. We will build a small utility function that will convert the style object we declare to a string that can be applied to our HTML.