
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
React-Grid-LayoutでサクッとDrag & Dropできるコンポーネントを作る - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
React-Grid-LayoutでサクッとDrag & Dropできるコンポーネントを作る - Qiita
import React from 'react'; import GridLayout from 'react-grid-layout'; import SampleComponent fro... import React from 'react'; import GridLayout from 'react-grid-layout'; import SampleComponent from './SampleComponent'; class App extends React.Component { constructor(){ super(); this.state = { cols : 12, rowHeight : 30, width :window.parent.screen.width } this.layouts = [ {i: 'a', x: 0, y: 0, w: 2, h: 4}, {i: 'b', x: 2, y: 0, w: 4, h: 4}, {i: 'c', x: 6, y: 0, w: 2, h: 8}, {i: 'd', x: 0, y: 4, w: