質問編集履歴
2
文言の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,6 +68,6 @@
|
|
68
68
|
|
69
69
|
# やりたいこと
|
70
70
|
|
71
|
-
|
71
|
+
formComponent.jsxの送信ボタンを押したら入力内容をboxComponent.jsxのstateのtestの値を変更したいです。
|
72
72
|
|
73
73
|
できるのでしょうか?
|
1
ファイル名の編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,23 +8,13 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
現状:
|
12
|
-
|
13
|
-
- directoryA - componentA
|
14
|
-
|
15
|
-
- directoryB - componentB
|
16
|
-
|
17
|
-
directoryAの中にcomponentAというファイルがあると思ってください。
|
18
|
-
|
19
|
-
|
20
|
-
|
21
11
|
### 該当のソースコード
|
22
12
|
|
23
|
-
|
13
|
+
boxComponent/boxComponent.jsx
|
24
14
|
|
25
15
|
```react
|
26
16
|
|
27
|
-
class
|
17
|
+
class boxComponent extends React.Component {
|
28
18
|
|
29
19
|
constructor(props) {
|
30
20
|
|
@@ -48,11 +38,11 @@
|
|
48
38
|
|
49
39
|
|
50
40
|
|
51
|
-
|
41
|
+
formComponent/formComponent.jsx
|
52
42
|
|
53
43
|
```react
|
54
44
|
|
55
|
-
class
|
45
|
+
class formComponent extends React.Component {
|
56
46
|
|
57
47
|
render() {
|
58
48
|
|