Created
January 11, 2017 10:16
-
-
Save mattecapu/5d1cc34254e2f6dbf235a56aecf6a9f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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