In the md file, I don't want react-styleguidist to run a code block. I just want to show this code source. But now it occurs an error.
I don't want the code block(const dialog = Modal.show(config);...) to run with react-styleguidist. I just want it to run the ModalExample code block.
Basic Usage
- Modal.show(config)
// close dialog
const dialog = Modal.show(config);
dialog.close()
import Button from '@ui/Button/Button'
import Dialog from './Dialog';
class ModalExample extends React.Component {
constructor(props) {
super(props);
this.state = {visible: false}
}
...
Uncaught ReferenceError: Modal is not defined