Mixins

February 4, 2018 ยท View on GitHub

Use JavaScript's spread syntax for mixing:

const mixinRedText = {
    color: 'red',
};
const template = {
    ...mixinRedText,
    background: '#eee',
};