react-github-markdown
v1.0.0-beta.4
Published
Github Markdown Editor & Viewer for React
Downloads
205
Readme
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 -
- MarkdownEditor & MarkdownViewer components from GitHub's Primer React Library. Checkout, and contribute to Primer React Repository.
- Markdown styling is imported from sindresorhus/github-markdown-css