30 lines
575 B
Markdown
30 lines
575 B
Markdown
|
# `<Button>`
|
||
|
|
||
|
## demo
|
||
|
|
||
|
```embed
|
||
|
const React = require('react');
|
||
|
const ReactDOM = require('react-dom/server');
|
||
|
const Base = require('../base');
|
||
|
const Container = require('../container');
|
||
|
const Row = require('../row');
|
||
|
const Column = require('../column');
|
||
|
const Toggle = require('./index.js');
|
||
|
const styles = require('./style.css');
|
||
|
|
||
|
nmodule.exports = ReactDOM.renderToString(
|
||
|
<Base>
|
||
|
<Container>
|
||
|
<Row>
|
||
|
<Column>
|
||
|
<Toggle />
|
||
|
</Column>
|
||
|
<Column>
|
||
|
<Toggle off />
|
||
|
</Column>
|
||
|
</Row>
|
||
|
</Container>
|
||
|
</Base>
|
||
|
);
|
||
|
```
|