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

Share this video with your friends

Send Tweet

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.