react-doc

1.2.6 • Public • Published

react-doc

when you write a API guide to people, why not let people try themself !

demo

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i react-doc

Weekly Downloads

16

Version

1.2.6

License

MIT

Last publish

Collaborators

  • hzongquan