Skip to content

traboda/react-github-markdown

Repository files navigation

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 -

About

Use GitHub's Markdown Editor on Your React Application

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published