Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 420 Bytes

test.mdx

File metadata and controls

30 lines (20 loc) · 420 Bytes

Document

npm i @uiw/react-markdown-editor

Basic Usage

import React from 'react';
import MarkdownEditor from '@uiw/react-markdown-editor';

const mdStr = `# This is a H1  \n## This is a H2  \n###### This is a H6`;

const Dome = () => {
  return (
    <MarkdownEditor
      value={mdStr}
      onChange={(value, viewUpdate) => {

      }}
    />
  )
};

export default Dome;