回答編集履歴
1
回答の趣旨という観点で不要なコードを除去
test
CHANGED
@@ -76,41 +76,19 @@
|
|
76
76
|
|
77
77
|
|
78
78
|
|
79
|
-
|
80
|
-
|
81
79
|
class YourClassName extends React.Component {
|
82
80
|
|
83
81
|
constructor(props) {
|
84
82
|
|
85
83
|
super(props);
|
86
84
|
|
87
|
-
this.state = {
|
85
|
+
this.state = {};
|
88
|
-
|
89
|
-
cssstyle: false,
|
90
|
-
|
91
|
-
};
|
92
86
|
|
93
87
|
}
|
94
88
|
|
95
|
-
|
96
89
|
|
97
|
-
cssChange= (elm) => {
|
98
|
-
|
99
|
-
elm.classList.toggle('cssstyle');
|
100
|
-
|
101
|
-
};
|
102
|
-
|
103
|
-
|
104
90
|
|
105
91
|
render() {
|
106
|
-
|
107
|
-
const cssstyle= ClassNames({
|
108
|
-
|
109
|
-
[theme.cssstyle]: this.state.cssstyle,
|
110
|
-
|
111
|
-
});
|
112
|
-
|
113
|
-
|
114
92
|
|
115
93
|
return (
|
116
94
|
|