Skip to content
Snippets Groups Projects
Commit 16bdedfd authored by Vincent Seyller's avatar Vincent Seyller
Browse files

Correction key list

parent e68f15cb
No related merge requests found
......@@ -27,8 +27,8 @@ let SW = () => {
people.previous ? <button key={"previous"} onClick={() => loadData(people.previous)}>Previous</button> : "",
people.next ? <button key={"next"} onClick={() => loadData(people.next)}>Next</button> : "",
<ul key={"people"}>
{people.results.map((p, idx) => {
return <li key={idx}>
{people.results.map(p => {
return <li key={p.url}>
{p.name}
<button onClick={() => setDetails(p)}>Details</button>
</li>
......
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