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

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages