parcel-plugin-react-markdown
v0.0.1
Published
Parcel plugin that lets you import markdown files as React components.
Downloads
5
Readme
parcel-plugin-react-markdown
A plugin for Parcel.js bundler that renders markdown files into React components using react-markdown.
Use
- Install the plugin
$ yarn add parcel-plugin-react-markdown
- Import your markdown files!
import React from 'react';
import ReactDOM from 'react-dom';
import MarkdownComponent from './Markdown.md';
ReactDOM.render(<MarkdownComponent/>, document.getElementById('app'));
Test
$ npm test