We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ccfe3 commit efdf745Copy full SHA for efdf745
client/src/components/ListContainer.js
@@ -8,7 +8,7 @@ class ListsContainer extends Component {
8
}
9
10
componentDidMount() {
11
- axios.get('http://localhost:3001/api/v1/lists.json')
+ axios.get('api/v1/lists.json')
12
.then(response => {
13
console.log(response)
14
this.setState({
@@ -19,8 +19,15 @@ class ListsContainer extends Component {
19
20
render() {
21
return (
22
- <div className="Lists-container">
23
- Lists
+ <div className="lists-container">
+ {this.state.lists.map( list => {
24
+ return (
25
+ <div className="single-list" key={list.id}>
26
+ <h4>{list.title}</h4>
27
+ <p>{list.excerpt}</p>
28
+ </div>
29
+ )
30
+ })}
31
</div>
32
)
33
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments