Skip to content

Instantly share code, notes, and snippets.

@diego3g
Created January 16, 2018 13:01
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 diego3g/e6a976c2b3c695e4194a83112165a326 to your computer and use it in GitHub Desktop.
Save diego3g/e6a976c2b3c695e4194a83112165a326 to your computer and use it in GitHub Desktop.
import React from 'react';
import { withRepoData } from './hocs/withRepoData';
const RepoList = ({ repoData }) => {
console.log(repoData); // Just logging
if (repoData.loading) return <p>Carregando...</p>;
return repoData.data.map(repo => <p key={repo.id}>{repo.full_name}</p>);
}
export default withRepoData(RepoList, 'diego3g');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment