Skip to content

Instantly share code, notes, and snippets.

Last active Apr 6, 2017
What would you like to do?
import React from 'react';
import 'isomorphic-fetch';
import Feed from './components/Feed';
const postEndpoint = ``;
export default class Index extends React.Component {
static async getInitialProps () {
const response = await fetch(postEndpoint);
const json = await response.json();
return {
data: json.items, // we don't need all of it, just items
render () {
return (
<h1>My design inspiration board</h1>
<Feed data={} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment