this is some code from material UI githubs mui line 13
after bable2016 compiled this code is like:
(0, _extends2.default)({}, theme.typography.button, ...)
what's this grammer ? anyone ever seem?
whole section after compiled . the compile is successed but I am still comfused var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
root: (0, _extends2.default)({}, theme.typography.button, {
boxSizing: 'border-box',
minWidth: 64,
minHeight: 36,
padding: '8px 16px',
borderRadius: theme.shape.borderRadius,
color: theme.palette.text.primary,
transition: theme.transitions.create(['background-color', 'box-shadow', 'border'], {
duration: theme.transitions.duration.short
}),