{"action":"created","issue":{"url":"https://api.github.com/repos/loktar00/react-lazy-load/issues/40","labels_url":"https://api.github.com/repos/loktar00/react-lazy-load/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/loktar00/react-lazy-load/issues/40/comments","events_url":"https://api.github.com/repos/loktar00/react-lazy-load/issues/40/events","html_url":"https://github.com/loktar00/react-lazy-load/issues/40","id":127170797,"number":40,"title":"Warning: React.createElement: type should not be null","user":{"login":"zoul","id":95329,"avatar_url":"https://avatars.githubusercontent.com/u/95329?v=3","gravatar_id":"","url":"https://api.github.com/users/zoul","html_url":"https://github.com/zoul","followers_url":"https://api.github.com/users/zoul/followers","following_url":"https://api.github.com/users/zoul/following{/other_user}","gists_url":"https://api.github.com/users/zoul/gists{/gist_id}","starred_url":"https://api.github.com/users/zoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoul/subscriptions","organizations_url":"https://api.github.com/users/zoul/orgs","repos_url":"https://api.github.com/users/zoul/repos","events_url":"https://api.github.com/users/zoul/events{/privacy}","received_events_url":"https://api.github.com/users/zoul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-18T07:42:16Z","updated_at":"2016-01-18T08:59:08Z","closed_at":"2016-01-18T08:59:08Z","body":"I have a very simple component that uses `LazyLoad` a bit like this:\r\n\r\n```\r\nvar LazyLoad = require('react-lazy-load')\r\nvar View = React.createClass({\r\n    render: function() {\r\n        return (\r\n            <LazyLoad>\r\n                <img src={…}/>\r\n            </LazyLoad>\r\n        )\r\n})\r\n```\r\n\r\nBut when displayed by browser, I get this error in the console:\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 `View`.\r\nInvariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of `View`.\r\n```\r\n\r\nWhat am I doing wrong? I am using 2.0.2 on Node 5.4.1."},"comment":{"url":"https://api.github.com/repos/loktar00/react-lazy-load/issues/comments/172467813","html_url":"https://github.com/loktar00/react-lazy-load/issues/40#issuecomment-172467813","issue_url":"https://api.github.com/repos/loktar00/react-lazy-load/issues/40","id":172467813,"user":{"login":"zoul","id":95329,"avatar_url":"https://avatars.githubusercontent.com/u/95329?v=3","gravatar_id":"","url":"https://api.github.com/users/zoul","html_url":"https://github.com/zoul","followers_url":"https://api.github.com/users/zoul/followers","following_url":"https://api.github.com/users/zoul/following{/other_user}","gists_url":"https://api.github.com/users/zoul/gists{/gist_id}","starred_url":"https://api.github.com/users/zoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoul/subscriptions","organizations_url":"https://api.github.com/users/zoul/orgs","repos_url":"https://api.github.com/users/zoul/repos","events_url":"https://api.github.com/users/zoul/events{/privacy}","received_events_url":"https://api.github.com/users/zoul/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T08:59:08Z","updated_at":"2016-01-18T08:59:08Z","body":"Perfect, that was it! Thank you for the quick reply."}}