Created
March 13, 2020 21:11
-
-
Save DennisDurairaj/9fcda9aab04d3c822a2778eacb78c955 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import "./App.css"; | |
function App() { | |
const items = [ | |
{ id: 1, value: "London" }, | |
{ id: 2, value: "Paris" }, | |
{ id: 3, value: "Tokyo" }, | |
{ id: 4, value: "Berlin" } | |
]; | |
return ( | |
<div className="App"> | |
{items.map(item => ( | |
<div>{item.value}</div> | |
))} | |
</div> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment