質問編集履歴
1
もう一つのコードを追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -187,4 +187,45 @@
|
|
187
187
|
}
|
188
188
|
|
189
189
|
export default Search;
|
190
|
+
```
|
191
|
+
|
192
|
+
### 追加のコード
|
193
|
+
|
194
|
+
|
195
|
+
```lang-言語名
|
196
|
+
import React, { Component } from 'react';
|
197
|
+
//import Main from './Main';
|
198
|
+
import Search from './Search';
|
199
|
+
|
200
|
+
/* Styleguide Application */
|
201
|
+
|
202
|
+
class StyleguideApplication extends React.Component {
|
203
|
+
|
204
|
+
constructor(props) {
|
205
|
+
super(props);
|
206
|
+
this.state = {
|
207
|
+
textLists: [
|
208
|
+
{ thumbnail: 'images/sample1.png', name:'icon', sourceTypeA:'sourceA', sourceTypeB:'sourceB', image: 'images/sample1.png'},
|
209
|
+
{ thumbnail: 'images/sample2.png', name:'navigation', sourceTypeA:'sourceA', sourceTypeB:'sourceB', image: 'images/sample2.png'},
|
210
|
+
{ thumbnail: 'images/sample3.png', name:'images', sourceTypeA:'sourceA', sourceTypeB:'sourceB', image: 'images/sample3.png'},
|
211
|
+
{ thumbnail: 'images/sample4.png', name:'pager', sourceTypeA:'sourceA', sourceTypeB:'sourceB', image: 'images/sample4.png'},
|
212
|
+
{ thumbnail: 'images/sample5.png', name:'check box', sourceTypeA:'sourceA', sourceTypeB:'sourceB', image: 'images/sample5.png'},
|
213
|
+
]
|
214
|
+
};
|
215
|
+
}
|
216
|
+
|
217
|
+
render() {
|
218
|
+
|
219
|
+
return (
|
220
|
+
<div className="wrap">
|
221
|
+
<div className="row">
|
222
|
+
<Search textlist={this.state.textLists} />
|
223
|
+
</div>
|
224
|
+
</div>
|
225
|
+
);
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
export default StyleguideApplication;
|
230
|
+
|
190
231
|
```
|