Skip to content

Instantly share code, notes, and snippets.

@Chryus
Created March 13, 2020 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chryus/0f00ce4776f249dbcd5536a6887de83b to your computer and use it in GitHub Desktop.
Save Chryus/0f00ce4776f249dbcd5536a6887de83b to your computer and use it in GitHub Desktop.
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