作为参考,我正在使用以下模板:https://github.com/mui-org/material-ui/blob/master/docs/src/pages/getting-started/templates/dashboard/Dashboard.js
我必须使用 Meteor.js 函数withTracker
将功能组件转换为类组件,据我所知,该函数只能包装类组件。这意味着makeStyles
将不起作用,并且一旦将仪表板从功能组件转换为类组件,我不确定如何应用主题样式。
我看过https://material-ui.com/styles/api/,但看不到任何可以让我这样做的东西,因此,如果有人可以将我指向正确的方向,那将非常感激。