Go ProSign in
Convert SCSS (Sass) to CSS-in-JS

Convert SCSS (Sass) to CSS-in-JS


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

    Oleg IsonenOleg Isonen

    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.

    You must be a Member to view code