UNPKG

bs-react-markdown

Version:

[Reason](https://reasonml.github.io/) binding for [react-markdown](https://github.com/rexxars/react-markdown)

32 lines (24 loc) 544 B
[Reason](https://reasonml.github.io/) binding for [react-markdown](https://github.com/rexxars/react-markdown) ## Installation ``` yarn add bs-react-markdown yarn add react-markdown ``` then add dependence to you bsconfig.json like this ``` { ... "bs-dependencies": [..., "bs-react-markdown"], ... } ``` ## Usage ``` open ReactMarkdown; let component = ReasonReact.statelessComponent("App"); let make = ( _children) => { ...component, render: _self => <Markdown source="## you first reason-markdown snippet" /> }; ```