Skip to content

Commit 8e9854e

Browse files
committed
Adding propTypes
1 parent c2debf1 commit 8e9854e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Codemirror.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ var React = require('react');
33

44
var CodeMirror = React.createClass({
55

6+
propTypes: {
7+
onChange: React.PropTypes.func,
8+
options: React.PropTypes.object,
9+
path: React.PropTypes.string,
10+
value: React.PropTypes.string
11+
},
12+
613
getInitialState () {
714
return {
815
isFocused: false

0 commit comments

Comments
 (0)