{"action":"created","issue":{"url":"https://api.github.com/repos/JedWatson/react-select/issues/741","repository_url":"https://api.github.com/repos/JedWatson/react-select","labels_url":"https://api.github.com/repos/JedWatson/react-select/issues/741/labels{/name}","comments_url":"https://api.github.com/repos/JedWatson/react-select/issues/741/comments","events_url":"https://api.github.com/repos/JedWatson/react-select/issues/741/events","html_url":"https://github.com/JedWatson/react-select/issues/741","id":129471542,"number":741,"title":"Component crashes","user":{"login":"robertkowalski","id":298166,"avatar_url":"https://avatars.githubusercontent.com/u/298166?v=3","gravatar_id":"","url":"https://api.github.com/users/robertkowalski","html_url":"https://github.com/robertkowalski","followers_url":"https://api.github.com/users/robertkowalski/followers","following_url":"https://api.github.com/users/robertkowalski/following{/other_user}","gists_url":"https://api.github.com/users/robertkowalski/gists{/gist_id}","starred_url":"https://api.github.com/users/robertkowalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertkowalski/subscriptions","organizations_url":"https://api.github.com/users/robertkowalski/orgs","repos_url":"https://api.github.com/users/robertkowalski/repos","events_url":"https://api.github.com/users/robertkowalski/events{/privacy}","received_events_url":"https://api.github.com/users/robertkowalski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-01-28T14:44:00Z","updated_at":"2016-05-05T16:12:48Z","closed_at":null,"body":"Hi and thanks for react-select!\r\n\r\nI want to use react-select in apache/couchdb-fauxton\r\n\r\nThe component renders if I disable it:\r\n\r\n```jsx\r\n          <Select\r\n            ref=\"stateSelect\"\r\n            disabled={true}\r\n            options={options} />\r\n```\r\n\r\nHowever when I enable it, it crashes with:\r\n\r\n```\r\nWarning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `Select`.\r\n\r\nUncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `Select`.\r\n```\r\n\r\nI already tried a lot of things to fix it, but I am quite puzzled now. Here is the full code which crashes:\r\n\r\n```jsx\r\n  var STATES = [\r\n    { value: 'australian-capital-territory', label: 'Australian Capital Territory', className: 'State-ACT' },\r\n    { value: 'new-south-wales', label: 'New South Wales', className: 'State-NSW' },\r\n    { value: 'victoria', label: 'Victoria', className: 'State-Vic' },\r\n    { value: 'queensland', label: 'Queensland', className: 'State-Qld' },\r\n    { value: 'western-australia', label: 'Western Australia', className: 'State-WA' },\r\n    { value: 'south-australia', label: 'South Australia', className: 'State-SA' },\r\n    { value: 'tasmania', label: 'Tasmania', className: 'State-Tas' },\r\n    { value: 'northern-territory', label: 'Northern Territory', className: 'State-NT' },\r\n  ];\r\n\r\n  var JumpToDatabaseWidget = React.createClass({\r\n\r\n    render: function () {\r\n      var options = STATES;\r\n      return (\r\n        <div>\r\n          <Select\r\n            ref=\"stateSelect\"\r\n            disabled={false}\r\n            options={options} />\r\n        </div>\r\n      );\r\n    }\r\n  });\r\n```\r\n\r\nHere is a screenshot with the stacktraces:\r\n\r\n![bildschirmfoto 2016-01-28 um 15 43 13](https://cloud.githubusercontent.com/assets/298166/12647524/df3a15c6-c5d5-11e5-9ed6-20fbeb735333.png)\r\n\r\n\r\nDo you have an idea what I am doing wrong?"},"comment":{"url":"https://api.github.com/repos/JedWatson/react-select/issues/comments/217198043","html_url":"https://github.com/JedWatson/react-select/issues/741#issuecomment-217198043","issue_url":"https://api.github.com/repos/JedWatson/react-select/issues/741","id":217198043,"user":{"login":"skbailey","id":486029,"avatar_url":"https://avatars.githubusercontent.com/u/486029?v=3","gravatar_id":"","url":"https://api.github.com/users/skbailey","html_url":"https://github.com/skbailey","followers_url":"https://api.github.com/users/skbailey/followers","following_url":"https://api.github.com/users/skbailey/following{/other_user}","gists_url":"https://api.github.com/users/skbailey/gists{/gist_id}","starred_url":"https://api.github.com/users/skbailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skbailey/subscriptions","organizations_url":"https://api.github.com/users/skbailey/orgs","repos_url":"https://api.github.com/users/skbailey/repos","events_url":"https://api.github.com/users/skbailey/events{/privacy}","received_events_url":"https://api.github.com/users/skbailey/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T16:12:47Z","updated_at":"2016-05-05T16:12:47Z","body":"I'm also getting the same error as @mharrisweb \r\n\r\nIt seems that instead of using `<Select.Async loadOptions={} />` the approach that works is `<Select asyncOptions={} />` but that doesn't seem to be in the documented options [here](https://github.com/JedWatson/react-select) although there are references to it."}}