diff --git a/README.md b/README.md index 3b813f8..d9898a0 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,6 @@ React component for a div with editable contents ``` ## Structure of this repository - * `lib/` compiled javascript, usable directly in the browser - * `src/` source javascript. Uses JSX and ES6. + * [`lib/`](https://github.com/lovasoa/react-contenteditable/tree/master/lib) compiled javascript, usable directly in the browser + * [`src/`](https://github.com/lovasoa/react-contenteditable/tree/master/src) source javascript. Uses JSX and ES6. diff --git a/src/react-contenteditable.js b/src/react-contenteditable.js index bfaf91c..81d5b41 100644 --- a/src/react-contenteditable.js +++ b/src/react-contenteditable.js @@ -15,7 +15,7 @@ export default class ContentEditable extends React.Component { dangerouslySetInnerHTML={{__html: this.props.html}}>; } - shouldComponentUpdate = (nextProps) { + shouldComponentUpdate(nextProps) { return nextProps.html !== React.findDOMNode(this).innerHTML; }