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

質問編集履歴

4

console画像を追加

2022/10/13 05:14

投稿

suzuki999
suzuki999

スコア8

title CHANGED
File without changes
body CHANGED
@@ -146,6 +146,5 @@
146
146
  export default TextfieldList;
147
147
 
148
148
  ```
149
-
150
-
151
- ここにより詳細な情報記載してください。
149
+ currentオブジェクトconsoleに出力た際、focusメソッドがない状態となっています
150
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-10-13/0a658623-0f8e-4058-82c4-c408855bd66a.png)

3

親コンポーネントのレンダリング処理を追加

2022/10/13 04:58

投稿

suzuki999
suzuki999

スコア8

title CHANGED
File without changes
body CHANGED
@@ -51,6 +51,17 @@
51
51
  xs: 9
52
52
  }
53
53
  }
54
+ return (
55
+ <>
56
+ <Stack spacing={2}>
57
+ <item>
58
+ <ComponentList lists={componentList1} setLists={setComponentlist} />
59
+
60
+ </item>
61
+ </Stack>
62
+ </>
63
+ );
64
+ }
54
65
 
55
66
 
56
67
 

2

閉じかっこを追加

2022/10/13 04:55

投稿

suzuki999
suzuki999

スコア8

title CHANGED
File without changes
body CHANGED
@@ -49,7 +49,8 @@
49
49
  component: 'Typography',
50
50
  key: 13,
51
51
  xs: 9
52
- },
52
+ }
53
+ }
53
54
 
54
55
 
55
56
 

1

変数名を修正

2022/10/13 04:54

投稿

suzuki999
suzuki999

スコア8

title CHANGED
File without changes
body CHANGED
@@ -21,7 +21,7 @@
21
21
 
22
22
  const hogeTextFieldRef = useRef();
23
23
  const movehoge=()=>{
24
-    componentList2.hogeTextfield.ref.current.focus()
24
+    componentList1.hogeTextfield2.ref.current.focus()
25
25
  }
26
26
  const [componentList1, setComponentlist] = useState({
27
27
  hogeTextfield1: {