1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

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

    scssSCSS

    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.