This is a simple React application created to learn and practice using the react-grid-layout library. The react-grid-layout library provides a powerful grid system for building responsive layouts in React applications.
To run this application locally, follow these steps:
Clone the repository to your local machine using the following command:
git clone https://github.com/silavsale/react-grid-layout
Navigate to the project directory:
cd react-grid-layout
Install the required dependencies using either npm or yarn:
npm install
or
yarn install
After completing the installation steps, you can start the application using the following command:
npm start
or
yarn start
This will start the development server and open the application in your default web browser.
The React Grid Layout Demo provides the following features:
Drag and drop functionality to rearrange the grid items. Resizable grid items. Responsive layout that adjusts based on screen size. Ability to add new grid items dynamically. Dependencies The main dependencies used in this project are:
React react-grid-layout react-resizable For a complete list of dependencies, please refer to the package.json file.
File Structure The file structure of the project is as follows:
react-grid-layout-demo/
├── src/
│ ├── GridLayoout/
│ │ ├── NestedGrid.js
│ │ └── GridLayout.js
│ │ └── SettingsModal.js
│ ├── App.js
│ └── index.js
├── public/
│ ├── index.html
│ └── ...
├── .gitignore
├── package.json
├── package-lock.json
└── README.md
The src/
directory contains the main source code of the application.
The src/Grid-Layout/
directory contains the React components used in the application.
The public/
directory contains the static assets and the HTML file used as the entry point for the application.
The .gitignore
file specifies which files and directories should be ignored by Git.
The package.json
and package-lock.json
files manage the project's dependencies and configuration.
The README.md
file provides information about the project and its usage.
React react-grid-layout react-resizable
This project is licensed under the MIT License. Feel free to modify and use it according to your needs.