What is the difference between Box and Grid in materiel-ui

Issue

What is the difference between Box and Grid in material-UI

When to use each one

I’m confused by that

Solution

In short:

Box is a more powerful, convenient, and potential replacement for div. You can change it to any HTML elements (e.g. span), but most of the time you will use it as div replacement.

Grid is the syntactic sugar of Gird Layout.

Answered By – Matthew Kwong

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published