質問編集履歴
3
Reac.js のタグを追加しました
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
ドキュメントの出典を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,3 +7,21 @@
|
|
7
7
|
createData('hoge', 'foo', 10);
|
8
8
|
// {name: 'hoge', item1: 'foo', item2: 10} となる
|
9
9
|
```
|
10
|
+
|
11
|
+
【追記】
|
12
|
+
MUIのドキュメントのサンプルに以下のように記載されていました。
|
13
|
+
```javascript
|
14
|
+
function createData(name, calories, fat, carbs, protein) {
|
15
|
+
return { name, calories, fat, carbs, protein };
|
16
|
+
}
|
17
|
+
|
18
|
+
const rows = [
|
19
|
+
createData('Frozen yoghurt', 159, 6.0, 24, 4.0),
|
20
|
+
createData('Ice cream sandwich', 237, 9.0, 37, 4.3),
|
21
|
+
createData('Eclair', 262, 16.0, 24, 6.0),
|
22
|
+
createData('Cupcake', 305, 3.7, 67, 4.3),
|
23
|
+
createData('Gingerbread', 356, 16.0, 49, 3.9),
|
24
|
+
];
|
25
|
+
```
|
26
|
+
https://mui.com/components/tables/#main-content
|
27
|
+
|
1
タイトルの修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
JSの関数で引数を波括弧で囲ってreturn で返すとそれがkey になる書き方
|
1
|
+
JSの関数で引数を波括弧で囲ってreturn で返すとそれが連想配列のkey になる書き方
|
test
CHANGED
File without changes
|