function init(React){ var Filter = React.createClass({ dealChange:function(){ var self = this, userInput = React.findDOMNode(self.refs.keywordInput).value; self.props.onChangeKeyword && self.props.onChangeKeyword.call(null,userInput); }, setFocus:function(){ var self = this; React.findDOMNode(self.refs.keywordInput).focus(); }, componentDidUpdate:function(){ this.setFocus(); }, render:function(){ var self = this; return (

Log Filter

wrap your RegExp between two slashes
e.g.
type /id=\d{3}/ will give you all the logs containing id=123
); }, componentDidMount:function(){ this.setFocus(); } }); return Filter; } module.exports.init = init;