Skip to content

Instantly share code, notes, and snippets.

@mattecapu
Created January 11, 2017 10:16
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 mattecapu/5d1cc34254e2f6dbf235a56aecf6a9f1 to your computer and use it in GitHub Desktop.
Save mattecapu/5d1cc34254e2f6dbf235a56aecf6a9f1 to your computer and use it in GitHub Desktop.
export default class Library extends React.Component {
static getFragment() {
return Lokka.getFragment(`
fragment on Library {
name
}
`);
}
render() {
const { name } =
this.props.library;
return (
<div className="library">
<h2>{name}</h2>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment