Commit 46e2c90d authored by Jiawen Lyu's avatar Jiawen Lyu

show logins in list

parent ce71ffc4
......@@ -74,7 +74,6 @@ class App extends Component {
<label for="exampleInputEmail1">Current students:</label>
</div>
<div class="row">
{logins}
<StudentsList logins={logins} />
</div>
</div>
......
......@@ -6,16 +6,13 @@ export const StudentsList = (props) => {
return (
<>
<ul class="list-group" id="studentList">
<li class="list-group-item">
{
console.log(logins)
}
</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
{
logins.map(login => (<li class="list-group-item">
{
login
}
</li>))
}
</ul>
</>
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment