teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

コードの文法の修正

2020/06/14 17:31

投稿

Sean2014
Sean2014

スコア59

title CHANGED
File without changes
body CHANGED
@@ -41,13 +41,16 @@
41
41
  <div>
42
42
  <h2>Words:</h2>
43
43
  <table>
44
+ <thead>
45
+ <tr>
44
46
  <th>ID</th>
45
47
  <th>Word (OL)</th>
46
48
  <th>Word (TL)</th>
47
49
  <th>Sentence (OL)</th>
48
50
  <th>Sentence (TL)</th>
49
51
  <th>Created Date</th>
52
+ </tr>
50
- </table>
53
+ </thead>
51
54
  <tbody>
52
55
  {this.state.wordsData.map(singleWord=>
53
56
  <RowCreator
@@ -59,6 +62,7 @@
59
62
  createdDate={singleWord.createdDate}
60
63
  />)}
61
64
  </tbody>
65
+ </table>
62
66
  </div>
63
67
  )
64
68
  }
@@ -69,7 +73,6 @@
69
73
  render(){
70
74
  let word = this.props;
71
75
  return(
72
- <div>
73
76
  <tr>
74
77
  <td>{word.id}</td>
75
78
  <td>{word.ownLangWordName}</td>
@@ -78,7 +81,6 @@
78
81
  <td>{word.targetLangExSentence}</td>
79
82
  <td>{word.createdDate}</td>
80
83
  </tr>
81
- </div>
82
84
  )
83
85
  }
84
86
  }