Skip to content

Instantly share code, notes, and snippets.

@Halama
Created November 26, 2014 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Halama/105745844d9774651dc6 to your computer and use it in GitHub Desktop.
Save Halama/105745844d9774651dc6 to your computer and use it in GitHub Desktop.
React = require 'react'
SearchRow = React.createClass
displayName: 'SearchRow'
propTypes:
query: React.PropTypes.string.isRequired
componentDidMount: ->
@refs.searchInput.getDOMNode().focus()
render: ->
React.DOM.div className: 'row kbc-search kbc-search-row',
React.DOM.span className: 'kbc-icon-search'
React.DOM.input type: 'text', className: 'form-control', placeholder: 'Search', ref: 'searchInput'
module.exports = SearchRow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment