{"id":3840,"date":"2016-04-20T02:08:11","date_gmt":"2016-04-20T02:08:11","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=3840"},"modified":"2016-04-20T02:08:11","modified_gmt":"2016-04-20T02:08:11","slug":"fixing-react-error-input-changing-controlled-input-type-text-uncontrolled","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-react-error-input-changing-controlled-input-type-text-uncontrolled\/","title":{"rendered":"Fixing React error: &#8220;Input is changing a controlled input of type text to be uncontrolled.&#8221;"},"content":{"rendered":"<p>If you upgrade to React 15, you can get this value:<\/p>\n<pre>\nInput is changing a controlled input of type text to be uncontrolled.\n<\/pre>\n<p>This means you&#8217;re passing an undefined value to a JSX component:<\/p>\n<pre lang=\"Javascript\">\nvar query = undefined;\n\nreturn (<input value={query} \/>);\n<\/pre>\n<p>To fix this, you just need to find the spot and set it to the empty string or some other value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fixing a nice new React 15 error<\/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":[9],"tags":[302,315,324,455],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3840"}],"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=3840"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3840\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=3840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=3840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=3840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}