Write markdown with React
This renderer allows you to write react and have it render out to a markdown file.
Add the dependancy
yarn add react-render-to-markdown
-- or --
npm install --save react-render-to-markdown
Then import to your project
import { render } from './src';
render(<App />, `${__dirname}/README.md`)
git clone https://github.com/George-Payne/react-render-to-markdown
cd react-render-to-markdown
yarn install
yarn example
This will create this readme. Edit demo.js
to edit the readme.
Written following nitin42's Building a custom React renderer.
Heavily referenced Adam Pritchard's Markdown Cheatsheet.