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