ReactJS react-grid-layout toggle static property
问题 I've been learning React for a couple of days, this time I'm trying to create a grid of draggable widgets, and I found this library on github: react-grid-layout which does that. This time, I'm trying to toggle draggable or static property when clicking on a button but I'm having some troubles doing so. This is my App.js : import React, { Component } from 'react'; import {InputText} from 'primereact/components/inputtext/InputText'; import GridLayout from 'react-grid-layout'; import './App.css'