Simple react mistakes
Simple react mistakes
Raghuram Bharathan
·
Follow
·
82
1
While reviewing solutions for our react programming test
into the input field and the setUserName method gets called,
controlled.
self-explanatory.
...
But this one isn’t going to give you the desired value of
{repos.map((item) =>
<div className="row">
<div className="col">{item.name}</div>
<div className="col">{item.language}</div>
<div className="col">{item.description}</div>
<div className="col">{item.size}</div>
</div>
)}
{repos.map((item) =>
<div className="col">{item.name}</div>
<div className="col">{item.language}</div>
<div className="col">{item.description}</div>
<div className="col">{item.size}</div>
</div>
)}
correct.
<table>
<tr>
<th>Name</th>
<th>Language</th>
<th>Description</th>
</tr>
</table>