Closed masayuki14 closed 4 years ago
v0.x と最新の v3.x を共存させる方法 https://material-ui.com/guides/migration-v0x/#where-should-i-start-in-a-migration
MuiThemeProvidor
は共存させた。
ThemeをCSSで上書きしたりカスタマイズしたり。 https://material-ui.com/customization/themes/#customizing-all-instances-of-a-component-type
https://material-ui.com/guides/typescript/#usage-of-withstyles
withStyle
でCSSを当てたり、MUIのコンポーネントのCSSを上書きしたりする。
theme から primary color 取ってきて withStyle で当ててやらないと、CSS情報が分散して収集が付かなくなるよ。
<Grid>
は <Grid container>
のなかに <Grid item>
を入れるようにしないといけない。
それぞれで使えるプロパティがちがう。
css
style
className
classes
それぞれのスタイル適用方法理解した。
Grid Layout についての話 https://material.io/design/layout/responsive-layout-grid.html# この考えがベースになってるので理解していたほうがいい。