-
-
Save Chryus/0f00ce4776f249dbcd5536a6887de83b 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 fetchData from "./fetchData"; | |
export default function permitList(props) { | |
const data = fetchData("https://data.cityofchicago.org/resource/ydr8-5enu.json?"); | |
return ( | |
<div> | |
<ul> | |
{data.map(el => ( | |
<li key={el.id}>{el.permit_type}</li> | |
))} | |
</ul> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment