react-doc
when you write a API guide to people, why not let people try themself !
install
npm i --save react-doc
usage
const code = `
const Todo = function(props) {
...
`;
<Doc code={code} />
API
name | type | default | description |
---|---|---|---|
backCode | string | '' | the code not show in the editor |
code | string | '' | the code show in the editor |
debounceWaitTime | number | 500 | the code compiling debounce time |
showGutter | bool | true | show the row number |