{"action":"created","issue":{"url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/50","repository_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views","labels_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/50/comments","events_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/50/events","html_url":"https://github.com/oliviertassinari/react-swipeable-views/issues/50","id":148689784,"number":50,"title":"Getting an error, while using this as a separate component.","user":{"login":"tushartuteja","id":5651179,"avatar_url":"https://avatars.githubusercontent.com/u/5651179?v=3","gravatar_id":"","url":"https://api.github.com/users/tushartuteja","html_url":"https://github.com/tushartuteja","followers_url":"https://api.github.com/users/tushartuteja/followers","following_url":"https://api.github.com/users/tushartuteja/following{/other_user}","gists_url":"https://api.github.com/users/tushartuteja/gists{/gist_id}","starred_url":"https://api.github.com/users/tushartuteja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tushartuteja/subscriptions","organizations_url":"https://api.github.com/users/tushartuteja/orgs","repos_url":"https://api.github.com/users/tushartuteja/repos","events_url":"https://api.github.com/users/tushartuteja/events{/privacy}","received_events_url":"https://api.github.com/users/tushartuteja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-15T15:24:27Z","updated_at":"2016-04-15T15:25:40Z","closed_at":null,"body":"VM7787 bundle.js:1105 Uncaught Invariant 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 `Tabs`.\r\n\r\nmy code is the following\r\n`import React from 'react';\r\nimport SwipeableViews from 'react-swipeable-views';\r\n\r\nvar MyComponent = React.createClass({\r\n\trender: function(){return (\r\n  <SwipeableViews>\r\n    <div style={Object.assign({}, styles.slide, styles.slide1)}>\r\n      slide n°1\r\n    </div>\r\n    <div style={Object.assign({}, styles.slide, styles.slide2)}>\r\n      slide n°2\r\n    </div>\r\n    <div style={Object.assign({}, styles.slide, styles.slide3)}>\r\n      slide n°3\r\n    </div>\r\n  </SwipeableViews>\r\n);}});\r\n\r\n\r\nvar styles = {\r\n  slide: {\r\n    padding: 15,\r\n    minHeight: 100,\r\n    color: '#fff',\r\n  },\r\n  slide1: {\r\n    background: '#FEA900',\r\n  },\r\n  slide2: {\r\n    background: '#B3DC4A',\r\n  },\r\n  slide3: {\r\n    background: '#6AC0FF',\r\n  },\r\n};\r\n\r\nexport default MyComponent;\r\n`"},"comment":{"url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/comments/210504784","html_url":"https://github.com/oliviertassinari/react-swipeable-views/issues/50#issuecomment-210504784","issue_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/50","id":210504784,"user":{"login":"tushartuteja","id":5651179,"avatar_url":"https://avatars.githubusercontent.com/u/5651179?v=3","gravatar_id":"","url":"https://api.github.com/users/tushartuteja","html_url":"https://github.com/tushartuteja","followers_url":"https://api.github.com/users/tushartuteja/followers","following_url":"https://api.github.com/users/tushartuteja/following{/other_user}","gists_url":"https://api.github.com/users/tushartuteja/gists{/gist_id}","starred_url":"https://api.github.com/users/tushartuteja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tushartuteja/subscriptions","organizations_url":"https://api.github.com/users/tushartuteja/orgs","repos_url":"https://api.github.com/users/tushartuteja/repos","events_url":"https://api.github.com/users/tushartuteja/events{/privacy}","received_events_url":"https://api.github.com/users/tushartuteja/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T15:25:40Z","updated_at":"2016-04-15T15:25:40Z","body":"getting another error \r\nbundle.js:7644 Uncaught TypeError: Cannot read property '_currentElement' of null\r\n\r\nfirst time I get the error mentioned in the above comment and then the above mentioned error."}}