Skip to content

Instantly share code, notes, and snippets.

@sejoker
Created April 4, 2017 13:10
Show Gist options
  • Save sejoker/897092d07537f8222ae8fe6c19938aed to your computer and use it in GitHub Desktop.
Save sejoker/897092d07537f8222ae8fe6c19938aed to your computer and use it in GitHub Desktop.
import { render } from 'react-dom';
import { Button, ButtonGroup } from 'cf-component-button';
import { StyleProvider } from 'cf-style-provider';
const ButtonComponent = () => (
<ButtonGroup>
<Button type="primary" onClick={() => console.log('Clicked One!')}>
Button One
</Button>
<Button type="default" onClick={() => console.log('Clicked Two!')}>
Button Two
</Button>
<Button type="success" onClick={() => console.log('Clicked Three!')}>
Button Three
</Button>
</ButtonGroup>
);
render(
<StyleProvider
cssNode={null}
fontNode={null}
dev={false}
selectorPrefix="cf-"
>
<ButtonComponent />
</StyleProvider>,
document.querySelector('#root')
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment