Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

George-Payne/react-render-to-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-markdown

Then 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 example

This 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.

About

Render react to markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published