質問編集履歴

3

文法の修正

2019/01/01 02:44

投稿

ktus
ktus

スコア12

test CHANGED
File without changes
test CHANGED
@@ -40,6 +40,8 @@
40
40
 
41
41
  ```
42
42
 
43
+ export const Button = styled.div`
44
+
43
45
  ${ItemContainer}:only-child & {
44
46
 
45
47
  ${props => props.remove && `
@@ -50,4 +52,6 @@
50
52
 
51
53
  }
52
54
 
55
+ `;
56
+
53
57
  ```

2

誤記修正

2019/01/01 02:44

投稿

ktus
ktus

スコア12

test CHANGED
File without changes
test CHANGED
@@ -18,9 +18,9 @@
18
18
 
19
19
  <ButtonsGroupe>
20
20
 
21
- <Button remove onClick={Remove}>Remove<Button> // :only-child: {display: none;}
21
+ <Button remove onClick={Remove}>Remove</Button> // :only-child: {display: none;}
22
22
 
23
- <Button add onClick={Add}>Add<Button>
23
+ <Button add onClick={Add}>Add</Button>
24
24
 
25
25
  </ButtonsGroupe>
26
26
 
@@ -36,7 +36,7 @@
36
36
 
37
37
 
38
38
 
39
- ### 解決策(meganezaru様ありがとうございます)
39
+ ### 解決策(Meganezaru様ありがとうございます)
40
40
 
41
41
  ```
42
42
 

1

解決策の追加

2019/01/01 02:41

投稿

ktus
ktus

スコア12

test CHANGED
File without changes
test CHANGED
@@ -33,3 +33,21 @@
33
33
  </Container>
34
34
 
35
35
  ```
36
+
37
+
38
+
39
+ ### 解決策(meganezaru様ありがとうございます)
40
+
41
+ ```
42
+
43
+ ${ItemContainer}:only-child & {
44
+
45
+ ${props => props.remove && `
46
+
47
+ display: none;
48
+
49
+ `}
50
+
51
+ }
52
+
53
+ ```