Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Material-UI without React / just with vanilla HTML, CSS & JS? Possible?

I learned Vanilla JS for some months and now I am building some basic things...

I wanna learn React soon, but for now I want to practice Vanilla JS a little bit before moving on...

I am searching a "CSS Framework" for easy prototyping (or: not caring so much about custom styles) and I really like the style of Material-UI. And because I want to learn React soon anyway, I don't really want to dig into two such things (like extra learning materialize or bootstrap).

Can I use Material-UI without React, with just vanilla HTML, CSS & JS? Can I just use the CSS styling side of things, or will this result in problems?

And can you maybe give me some tips on how to do it? Is it as simple as including a style and link tag to my HTML?

like image 944
user3517228 Avatar asked Dec 24 '19 09:12

user3517228


People also ask

Can you use material UI without React?

No, you cannot use Material-UI without React. Material-UI is a library of React components.

Can I use material UI in HTML?

It is an HTML, CSS & JS framework to make responsive websites that are mobile-friendly and easy to create. Material UI is a highly interactive & customizable framework based on React UI and Material Design.

Should you use vanilla JS?

If you want to become a front end or a full stack web developer, then learning vanilla JS is a necessity. This is because Javascript has other frameworks and libraries like Angular, React, and Vue as well, which has a large number of advantages over jQuery.

Does material UI use CSS in JS?

Material UI is a React component that aims to ensure fast and easy web application development. Material UI is not only restricted to Material UI components, but can also use the CSS-in-JS solution through the @material-ui/styles package here.


1 Answers

Yes you can, also an alternative is Materialise, kind of a bootstrap duplicating material ui.

I used it with some of my React projects.

like image 60
Jean T Avatar answered Sep 21 '22 08:09

Jean T