react-simplemde
v0.0.2
Published
React SimpleMDE ===============
Downloads
34
Readme
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request