Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Editor from 'react-md-editor';
- state = {
- code: '# React Markdown '
- }
- updateCode = (newCode) => {
- this.setState({
- code: newCode
- });
- }
- Render:
- <Editor value={this.state.code} onChange={this.updateCode} />
Add Comment
Please, Sign In to add comment