Answers for "how to add multiple classes in material ui make style"

2

adding two jss style in material ui styele

function combineStyles(...styles) {
  return function CombineStyles(theme) {
    const outStyles = styles.map((arg) => {
      // Apply the "theme" object for style functions.
      if (typeof arg === 'function') {
        return arg(theme);
      }
      // Objects need no change.
      return arg;
    });

    return outStyles.reduce((acc, val) => Object.assign(acc, val));
  };
}

export default combineStyles;
Posted by: Guest on February-04-2021

Code answers related to "how to add multiple classes in material ui make style"

Browse Popular Code Answers by Language