{"action":"opened","issue":{"url":"https://api.github.com/repos/xuopled/react-google-maps-loader/issues/17","repository_url":"https://api.github.com/repos/xuopled/react-google-maps-loader","labels_url":"https://api.github.com/repos/xuopled/react-google-maps-loader/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/xuopled/react-google-maps-loader/issues/17/comments","events_url":"https://api.github.com/repos/xuopled/react-google-maps-loader/issues/17/events","html_url":"https://github.com/xuopled/react-google-maps-loader/issues/17","id":331240392,"node_id":"MDU6SXNzdWUzMzEyNDAzOTI=","number":17,"title":"Cannot call a class as a function","user":{"login":"valvic66","id":29757922,"node_id":"MDQ6VXNlcjI5NzU3OTIy","avatar_url":"https://avatars1.githubusercontent.com/u/29757922?v=4","gravatar_id":"","url":"https://api.github.com/users/valvic66","html_url":"https://github.com/valvic66","followers_url":"https://api.github.com/users/valvic66/followers","following_url":"https://api.github.com/users/valvic66/following{/other_user}","gists_url":"https://api.github.com/users/valvic66/gists{/gist_id}","starred_url":"https://api.github.com/users/valvic66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valvic66/subscriptions","organizations_url":"https://api.github.com/users/valvic66/orgs","repos_url":"https://api.github.com/users/valvic66/repos","events_url":"https://api.github.com/users/valvic66/events{/privacy}","received_events_url":"https://api.github.com/users/valvic66/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-11T15:33:32Z","updated_at":"2018-06-11T15:33:32Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nThe below component throws error when react-google-maps-loader is upgraded to 4.0.0.\r\nCould you provide some guidance pls.\r\n\r\n`export class GoogleAddressInputWrapper extends React.Component<IGoogleAddressInputProps> {\r\n    // tslint:disable-next-line\r\n    private component: any;\r\n\r\n    constructor(props: IGoogleAddressInputProps) {\r\n        super(props);\r\n        this.component = GoogleMapsLoader(GoogleAddressInputComponent, {\r\n            libraries: ['places'],\r\n            key: props.googleApiKey\r\n        });\r\n    }\r\n\r\n    public render() {\r\n        if (this.component == null) {\r\n            return null;\r\n        }\r\n\r\n        return <this.component {...this.props} />;\r\n    }\r\n}`\r\n\r\nError is:\r\n\r\n`Cannot call a class as a function\r\nTypeError: Cannot call a class as a function\r\n    at _classCallCheck (http://localhost:6006/static/preview.bundle.js:223503:99)\r\n    at GoogleMapsLoader (http://localhost:6006/static/preview.bundle.js:223518:5)\r\n    at new GoogleAddressInputWrapper (http://localhost:6006/static/preview.bundle.js:223473:108)\r\n    at constructClassInstance (http://localhost:6006/static/preview.bundle.js:73144:20)\r\n    at updateClassComponent (http://localhost:6006/static/preview.bundle.js:74679:9)\r\n    at beginWork (http://localhost:6006/static/preview.bundle.js:75325:16)\r\n    at performUnitOfWork (http://localhost:6006/static/preview.bundle.js:78157:16)\r\n    at workLoop (http://localhost:6006/static/preview.bundle.js:78186:26)\r\n    at renderRoot (http://localhost:6006/static/preview.bundle.js:78217:9)\r\n    at performWorkOnRoot (http://localhost:6006/static/preview.bundle.js:78792:24)\r\n`\r\n\r\nThanks.\r\n"}}
{"actor":{"display_login":"valvic66"}}