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