-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Help] Support for Material Ui 5 with Javascript #28
Comments
Hi @Bramgus12, Essentially: - const useStyles = makeStyles<{ color: "red" | "blue" }>()(
+ const useStyles = makeStyles()(
(theme, { color }) => ({
"root": {
color,
"&:hover": {
"backgroundColor": theme.primaryColor,
},
},
}),
); |
Thanks for the reply, I'll try to get it to work tonight. Maybe you can add somewhere in the readme that it will work on Javascript or even add examples for javascript? This will most certainly help the junior developers! |
I am currently using a project with Material UI 4 and am in the process of changing to MUI 5. I had used a lot of makeStyles and would like to still use this way of styling. I saw this repo and thought this would be a great way to still use makeStyles, but then saw that you guys specifically made this for TS and not JS. So I am asking if you guys support JS and if you do, how can I then add it to my project? Maybe there could be a specific guide with everything you need to do to convert your MUI 5 project to use this library?
The text was updated successfully, but these errors were encountered: