Skip to content

Instantly share code, notes, and snippets.

@dance2die

dance2die/index.js

Created Dec 4, 2017
Embed
What would you like to do?
fetch(`https://api.github.com/users/codingblocks/events/public`)
.then(response => response.json())
.then(events => {
console.log("index.js events", events);
ReactDOM.render(
<GitHubEventApp events={events} />,
document.getElementById("root")
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment