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

Convert SCSS (Sass) to CSS-in-JS

Autoplay

    Define and Override Default CSS-in-JS Values for Arguments in a JavaScript Function Mixin

    Oleg IsonenOleg Isonen
    1:37

    Often times it makes sense to define sensible default styles for mixins. This way, the user can just make a call to the mixin and pass in any explicit styles that they want to override.

    In this lesson, you will learn how to convert arguments with default values as well as how to use default values with objects destructuring.

    You must be a Member to view code