Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 25, 2018 11:03
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 productioncoder/f8a494a077b6998a3cd7e39688d11416 to your computer and use it in GitHub Desktop.
Save productioncoder/f8a494a077b6998a3cd7e39688d11416 to your computer and use it in GitHub Desktop.
Youtube in React: updating HeaderNav markup to react to form input
<Menu.Item className='search-input'>
<Form onSubmit={this.onSubmit}>
{/* 4 */}
<Form.Field>
<Input placeholder='Search'
size='small'
action='Go'
value={this.state.query}
onChange={this.onInputChange}
/>
</Form.Field>
</Form>
</Menu.Item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment