How to use GridList in ReactJS? Last Updated : 22 Jan, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report Grid lists display a collection of images in an organized grid. Material UI for React has this component available for us and it is very easy to integrate. We can use the GridList component in ReactJS using the following approach. Creating React Application And Installing Module: Step 1: Create a React application using the following command: npx create-react-app foldernameStep 2: After creating your project folder i.e. foldername, move to it using the following command: cd foldernameStep 3: After creating the ReactJS application, Install the material-ui modules using the following command: npm install @material-ui/coreProject Structure: It will look like the following. Project StructureFilename-App.js: Now write down the following code in the App.js file. Here, App is our default component where we have written our code. JavaScript import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import GridList from '@material-ui/core/GridList'; import GridListTile from '@material-ui/core/GridListTile'; const App = () => { return ( <div style={{ width: 300, margin: 'auto' }}> <h3>Grid List ReactJS</h3> <GridList cellHeight={50} cols={3}> <GridListTile rows={6} cols={3}> <img src= "https://write.geeksforgeeks.org/static/media/Group%20210.08204759.svg" alt="pic" /> </GridListTile> <GridListTile cols={1}> <img src= "https://write.geeksforgeeks.org/static/media/Group%20210.08204759.svg" alt="pic" /> </GridListTile> <GridListTile cols={3}> <img src= "https://write.geeksforgeeks.org/static/media/Group%20210.08204759.svg" alt="pic" /> </GridListTile> </GridList> </div> ); } export default App; Step to Run Application: Run the application using the following command from the root directory of the project: npm startOutput: Now open your browser and go to http://localhost:3000/, you will see the following output: Comment More infoAdvertise with us Next Article How to use List Component in ReactJS? G gouravhammad Follow Improve Article Tags : ReactJS Similar Reads How to use DataGrid Component in ReactJS ? A DataGrid Component helps in displaying the information in a grid-like format of rows and columns. Material UI for React has this component available for us, and it is very easy to integrate. We can use the following approach in ReactJS to use DataGrid Component.Creating React Application And Insta 2 min read How to use List Component in ReactJS? Lists are continuous, vertical indexes of text or images. Material UI for React has this component available for us, and it is very easy to integrate. We can use the List Component in ReactJS using the following approach. Prerequisites:NodeJS or NPMReactJSSteps to Create the React Application And In 2 min read How to use XGrid Component in ReactJS ? An XGrid Component is a Commercial version of the MaterialUI Component. It provided more enhanced features over the community DataGrid Component like column resizing, column reordering, pagination over 100 rows, etc. A DataGrid Component helps in displaying the information in a grid-like format of r 3 min read How to use map() to Create Lists in ReactJS ? The map function is generally used to render the list items dynamically in react. This function iterates over the array and each iteration returns the JSX for respective item. It helps to render and display the list efficiently. Prerequisites:React JSJavaScript Array.mapApproachTo create and render 2 min read How to use Filtering in DataGrid Component in ReactJS ? Using the DataGrid Component's filtering feature enables users to pinpoint specific records for a more targeted display. The ReactJS DataGrid Component arranges information in a grid layout, and implementing filtering follows a simple and user-friendly approach.Prerequisite:React JSMaterial UIApproa 2 min read How to create Grid Lights Using React ? In this tutorial, we'll walk through the process of building a React application that creates a 3x3 grid of cells. Users can activate these cells, turning them green, and witness the deactivation process in reverse order. This project serves as an excellent practice scenario for React interviews, co 3 min read Like