{"action":"opened","issue":{"url":"https://api.github.com/repos/JetBrains/kotlin-wrappers/issues/94","repository_url":"https://api.github.com/repos/JetBrains/kotlin-wrappers","labels_url":"https://api.github.com/repos/JetBrains/kotlin-wrappers/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/kotlin-wrappers/issues/94/comments","events_url":"https://api.github.com/repos/JetBrains/kotlin-wrappers/issues/94/events","html_url":"https://github.com/JetBrains/kotlin-wrappers/issues/94","id":394763297,"node_id":"MDU6SXNzdWUzOTQ3NjMyOTc=","number":94,"title":"Kotlin Wrapper around Material UI","user":{"login":"grantlittle","id":2791961,"node_id":"MDQ6VXNlcjI3OTE5NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/2791961?v=4","gravatar_id":"","url":"https://api.github.com/users/grantlittle","html_url":"https://github.com/grantlittle","followers_url":"https://api.github.com/users/grantlittle/followers","following_url":"https://api.github.com/users/grantlittle/following{/other_user}","gists_url":"https://api.github.com/users/grantlittle/gists{/gist_id}","starred_url":"https://api.github.com/users/grantlittle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantlittle/subscriptions","organizations_url":"https://api.github.com/users/grantlittle/orgs","repos_url":"https://api.github.com/users/grantlittle/repos","events_url":"https://api.github.com/users/grantlittle/events{/privacy}","received_events_url":"https://api.github.com/users/grantlittle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-29T05:35:47Z","updated_at":"2018-12-29T05:35:47Z","closed_at":null,"author_association":"NONE","body":"I'm trying to figure out how to wrap (in Kotlin) [Material UI](https://material-ui.com) components. This is all fairly new to be, and so far I'm not having much luck!\r\n\r\nTaking the Button component as an example, I have the following:-\r\n\r\n`\r\n@file:JsModule(\"@material-ui/core/Button\")\r\n\r\npackage materialui\r\n\r\nimport react.*\r\n\r\n@JsName(\"Button\")\r\nexternal class MaterialButton : Component<ButtonProps, RState> {\r\n    override fun render(): ReactElement?\r\n}\r\n\r\nexternal interface ButtonProps : RProps {\r\n    var disabled: Boolean?\r\n    var variant: String?\r\n}\r\n\r\nfun RBuilder.mButton(handler: RHandler<ButtonProps>) = child(MaterialButton::class, handler)\r\n`\r\n\r\nBut this is not working. I get the following error\r\n\r\n`\r\ngetOrCreateKClass\r\nnode_modules/kotlin/kotlin.js:28064\r\n\r\n...\r\n28064 | var metadata = jClass.$metadata$;\r\n...\r\n\r\ngetKClass\r\nnode_modules/kotlin/kotlin.js:28006\r\n...\r\n28006 | return getOrCreateKClass(jClass);\r\n...\r\n`\r\n\r\nI've been struggling with this (and my limited JS skills) for a while now so any help would be appreciated"}}
{"actor":{"display_login":"grantlittle"}}