{"action":"created","issue":{"url":"https://api.github.com/repos/Lesha-spr/react-validation/issues/16","repository_url":"https://api.github.com/repos/Lesha-spr/react-validation","labels_url":"https://api.github.com/repos/Lesha-spr/react-validation/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/Lesha-spr/react-validation/issues/16/comments","events_url":"https://api.github.com/repos/Lesha-spr/react-validation/issues/16/events","html_url":"https://github.com/Lesha-spr/react-validation/issues/16","id":145878474,"number":16,"title":"how to bind value on state","user":{"login":"sinkcup","id":4971414,"avatar_url":"https://avatars.githubusercontent.com/u/4971414?v=3","gravatar_id":"","url":"https://api.github.com/users/sinkcup","html_url":"https://github.com/sinkcup","followers_url":"https://api.github.com/users/sinkcup/followers","following_url":"https://api.github.com/users/sinkcup/following{/other_user}","gists_url":"https://api.github.com/users/sinkcup/gists{/gist_id}","starred_url":"https://api.github.com/users/sinkcup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinkcup/subscriptions","organizations_url":"https://api.github.com/users/sinkcup/orgs","repos_url":"https://api.github.com/users/sinkcup/repos","events_url":"https://api.github.com/users/sinkcup/events{/privacy}","received_events_url":"https://api.github.com/users/sinkcup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-05T03:48:52Z","updated_at":"2016-04-10T17:40:23Z","closed_at":null,"body":"```\r\n<Validation.Input value=\"foo\" ref='username' name='username' validations={[{rule: 'isRequired'}]} />\r\n```\r\n\r\nabove is OK. but this is useless:\r\n\r\n```\r\nthis.state.name = 'foo';\r\n<Validation.Input value={this.state.name} ref='username' name='username' validations={[{rule: 'isRequired'}]} />\r\nthis.setState({ name: 'bar' });\r\n```\r\n\r\nin react official docs, we should use value to bind. see https://facebook.github.io/react/docs/forms.html#controlled-components"},"comment":{"url":"https://api.github.com/repos/Lesha-spr/react-validation/issues/comments/208026137","html_url":"https://github.com/Lesha-spr/react-validation/issues/16#issuecomment-208026137","issue_url":"https://api.github.com/repos/Lesha-spr/react-validation/issues/16","id":208026137,"user":{"login":"Lesha-spr","id":8465117,"avatar_url":"https://avatars.githubusercontent.com/u/8465117?v=3","gravatar_id":"","url":"https://api.github.com/users/Lesha-spr","html_url":"https://github.com/Lesha-spr","followers_url":"https://api.github.com/users/Lesha-spr/followers","following_url":"https://api.github.com/users/Lesha-spr/following{/other_user}","gists_url":"https://api.github.com/users/Lesha-spr/gists{/gist_id}","starred_url":"https://api.github.com/users/Lesha-spr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lesha-spr/subscriptions","organizations_url":"https://api.github.com/users/Lesha-spr/orgs","repos_url":"https://api.github.com/users/Lesha-spr/repos","events_url":"https://api.github.com/users/Lesha-spr/events{/privacy}","received_events_url":"https://api.github.com/users/Lesha-spr/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T17:40:23Z","updated_at":"2016-04-10T17:40:23Z","body":"Hi @sinkcup ,\r\n\r\nPlease checkout [fix](https://github.com/Lesha-spr/react-validation/commit/70149985388e131d98a7253536058c1c3082088c) (@1.6.4) for this issue. Hope this help.\r\n\r\nPlease close issue if everything is fine.\r\n\r\nThanks,\r\nOleksii"}}