Last active
February 21, 2019 21:38
-
-
Save MykolaGolubyev/058da5605c18b092241c2e031877564d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import { Registries, ComponentViewer } from 'react-component-viewer'; | |
const registries = new Registries(); | |
registries.add('components') | |
.registerAsGrid('Links', 300, linksDemo) | |
.registerAsTwoColumnTable('Buttons', buttonsDemo) | |
.registerAsRows('Inputs', inputsDemo); | |
registries.add('layouts') | |
.registerSingle('Side by Side', sideBySideDemo); | |
registries.add('screens') | |
.registerSingle('profile screen', profileScreenDemo) | |
export class App extends React.Component { | |
render() { | |
return ( | |
<ComponentViewer registries={registries}/> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment