|
|
|
|
|
by iliaznk
2221 days ago
|
|
In general I agree that all that JSS mess is something invented by someone too lazy (to put it mildly) to learn how CSS works (just like hooks – too lazy to figure out "this" and classes in JS), but if you read the docs a bit closer, you'd find that plain CSS works just as well https://material-ui.com/guides/interoperability/. |
|
That's just a part of why hooks exist: https://reactjs.org/docs/hooks-intro.html#motivation
The more important parts have to do with code reusability and complexity.
And the way classes work in React is not typical and there _are_ non-standard behaviors to them, so to brush that additional complexity aside is myopic.