Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another pitfall is SEO: the SEO team might tell us they need a certain element on the page to be an h2, for SEO purposes, but it needs different styling than other h2s on the page.

MUI solves this problem by having different typography sizes defined in the theme, and then you specify variant=“h2” on an arbitrary Typography component and all the styling is consistent.

One more reason I always choose or recommend MUI for all new projects.



I'm not sure why this is preferable to having the h2 have a class?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: