Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Grid System equivalent to Bootstrap's Grid system?

Tags:

reactjs

I'm looking to start styling my React app. I have previously used Bootstrap's Grid system and am now looking for the React grid system. What do React developers commonly use for their App's Grid system / Layout?

like image 324
AnApprentice Avatar asked Jun 15 '17 16:06

AnApprentice


People also ask

What is Bootstrap's grid system?

Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It's built with flexbox and is fully responsive. Below is an example and an in-depth look at how the grid comes together.

What is Xs and SM react?

sm, small: ≥ 576px. xs, extra-small: < 576px.

How do you use the grid system in react?

The Material Design responsive layout grid adapts to screen size and orientation, ensuring consistency across layouts. Material UI for React has this component available for us and it is very easy to integrate. We can the Grid component in ReactJS using the following approach.


1 Answers

If you are targeting only modern browsers (i.e. those with flexbox support) you may want to investigate react-flexbox-grid which offers a set of React components that implement the usual grid concepts like Row and Column. I've used in successfully in a couple of projects.

This option avoids the need to pull in a whole UI library and only use the grid portions.

like image 129
Matt Holland Avatar answered Nov 03 '22 05:11

Matt Holland