react-simplemde

0.0.2 • Public • Published

React SimpleMDE

Simple React component wrapper for SimpleMDE.

Install

npm install --save react-simplemde

Usage

var React = require('react');
var ReactSimpleMDE = require('react-simplemde');
 
module.exports = React.createClass({
  render: function () {
    var text = '# This a markdown file.';
 
    return (
      <div>
        <ReactSimpleMDE initialValue={text} />
      </div>
    );
  }
});

All the props are passed as options to SimpleMDE, except spellChecker as it was causing problems.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Readme

Keywords

none

Package Sidebar

Install

npm i react-simplemde

Weekly Downloads

31

Version

0.0.2

License

ISC

Last publish

Collaborators

  • mushishi78