Skip to content

Instantly share code, notes, and snippets.

@DennisDurairaj
Created March 13, 2020 21:11
Show Gist options
  • Save DennisDurairaj/9fcda9aab04d3c822a2778eacb78c955 to your computer and use it in GitHub Desktop.
Save DennisDurairaj/9fcda9aab04d3c822a2778eacb78c955 to your computer and use it in GitHub Desktop.
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