Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1.79 KB

README.MD

File metadata and controls

51 lines (44 loc) · 1.79 KB

React Github Markdown

A simple wrapper to easily add GitHub's markdown editor and viewer to your React applications.

Installation

npm install react-github-markdown

Usage

import React from 'react';
import { MarkdownEditor, MarkdownViewer } from 'react-github-markdown';

const App = () => {
  const [markdown, setMarkdown] = React.useState('');

  return (
    <div>
      <MarkdownEditor
        value={markdown}
        onChange={setMarkdown}
      />
      <MarkdownViewer markdown={markdown} />
    </div>
  );
};

Credits

This project uses -