react-md-editor
react-md-editor copied to clipboard
add updated version of code
-
Using ES6 syntax for the React component instead of
React.createClass(). -
Adding
propTypesto the component to ensure that the correct types of props are passed in. -
Using
constorletinstead ofvarto declare variables. -
Adding comments to the code to explain what each section does.