{"id":3850,"date":"2016-04-21T01:51:52","date_gmt":"2016-04-21T01:51:52","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=3850"},"modified":"2016-04-21T01:51:52","modified_gmt":"2016-04-21T01:51:52","slug":"react-bootstrap-formcontrol-example","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/react-bootstrap-formcontrol-example\/","title":{"rendered":"React Bootstrap: FormControl textbox Example"},"content":{"rendered":"<p>For whatever reason, React Bootstrap has gotten rid of Input tags, and you will get deprecation warnings if you use them.<\/p>\n<p>The new, new way, is to use FormControls, which you can use to do the same thing:<\/p>\n<pre lang=\"xml\">\n<FormGroup>\n  <FormControl\n    type=\"text\"\n    value={query}\n    id=\"searchButton\"\n    ref=\"input\"\n    className=\"searchButton\"\n    onKeyUp={onKeyUp}\n    onChange={onChangeSearch}\n    buttonAfter={searchActions}\n    placeholder=\"Search...\" \/>\n  <\/FormGroup>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Fixing a deprecation warning in React Bootstrap<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[92,302,455,456],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3850"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=3850"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3850\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=3850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=3850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=3850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}