teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

修正

2022/01/02 12:52

投稿

aren3
aren3

スコア9

title CHANGED
@@ -1,1 +1,1 @@
1
- propsのデータの受け渡しがうまくいかない
1
+ propsの配列データの受け渡しがうまくいかない
body CHANGED
File without changes

1

修正

2022/01/02 12:51

投稿

aren3
aren3

スコア9

title CHANGED
File without changes
body CHANGED
@@ -1,10 +1,14 @@
1
1
  ```
2
- (src/pages/index.tsx)
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