質問編集履歴
2
修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
propsのデータの受け渡しがうまくいかない
|
1
|
+
propsの配列データの受け渡しがうまくいかない
|
body
CHANGED
File without changes
|
1
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
```
|
2
|
-
(src/
|
2
|
+
(src/types/spotData.tsx)
|
3
3
|
|
4
|
-
type spotData = {
|
4
|
+
export type spotData = {
|
5
5
|
spot: Array<spotData>;
|
6
6
|
};
|
7
|
+
```
|
7
8
|
|
9
|
+
```
|
10
|
+
(src/pages/index.tsx)
|
11
|
+
|
8
12
|
const Index: NextPage = () => {
|
9
13
|
const [spot, setSpot] = useState<spotData[]>([]);
|
10
14
|
|