{"action":"created","issue":{"url":"https://api.github.com/repos/hipertracker/meteor-reactjs/issues/6","labels_url":"https://api.github.com/repos/hipertracker/meteor-reactjs/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/hipertracker/meteor-reactjs/issues/6/comments","events_url":"https://api.github.com/repos/hipertracker/meteor-reactjs/issues/6/events","html_url":"https://github.com/hipertracker/meteor-reactjs/issues/6","id":58872199,"number":6,"title":"Using meteor-reactjs with 3rd party components?","user":{"login":"sunny-g","id":2055636,"avatar_url":"https://avatars.githubusercontent.com/u/2055636?v=3","gravatar_id":"","url":"https://api.github.com/users/sunny-g","html_url":"https://github.com/sunny-g","followers_url":"https://api.github.com/users/sunny-g/followers","following_url":"https://api.github.com/users/sunny-g/following{/other_user}","gists_url":"https://api.github.com/users/sunny-g/gists{/gist_id}","starred_url":"https://api.github.com/users/sunny-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunny-g/subscriptions","organizations_url":"https://api.github.com/users/sunny-g/orgs","repos_url":"https://api.github.com/users/sunny-g/repos","events_url":"https://api.github.com/users/sunny-g/events{/privacy}","received_events_url":"https://api.github.com/users/sunny-g/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-25T09:15:28Z","updated_at":"2015-04-29T18:50:26Z","closed_at":"2015-03-18T11:58:06Z","body":"What's the recommended way of using 3rd party React components alongside `meteor-reactjs`? \r\n\r\nI'm trying to use https://gitub.com/callemall/material-ui, but kept getting the `\"Uncaught TypeError: Cannot read property 'firstChild' of undefined\"`. \r\n\r\nSo far, I include `material-ui` by running `npm install && gulp build` in a hidden folder that reactify's the dependencies into a single file and puts it in `client/compatibility`, which loads the library as expected, but results in the aforementioned error. In the simple example of just rendering a `RaisedButton`, it prevents the rippling animation from being triggered though on hover, the button changes. \r\n\r\nedit: this issue might also be related: https://github.com/callemall/material-ui/issues/331"},"comment":{"url":"https://api.github.com/repos/hipertracker/meteor-reactjs/issues/comments/97538267","html_url":"https://github.com/hipertracker/meteor-reactjs/issues/6#issuecomment-97538267","issue_url":"https://api.github.com/repos/hipertracker/meteor-reactjs/issues/6","id":97538267,"user":{"login":"ukabu","id":95629,"avatar_url":"https://avatars.githubusercontent.com/u/95629?v=3","gravatar_id":"","url":"https://api.github.com/users/ukabu","html_url":"https://github.com/ukabu","followers_url":"https://api.github.com/users/ukabu/followers","following_url":"https://api.github.com/users/ukabu/following{/other_user}","gists_url":"https://api.github.com/users/ukabu/gists{/gist_id}","starred_url":"https://api.github.com/users/ukabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ukabu/subscriptions","organizations_url":"https://api.github.com/users/ukabu/orgs","repos_url":"https://api.github.com/users/ukabu/repos","events_url":"https://api.github.com/users/ukabu/events{/privacy}","received_events_url":"https://api.github.com/users/ukabu/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T18:50:26Z","updated_at":"2015-04-29T18:50:26Z","body":"You can look at my take in creating https://github.com/ukabu/material-ui (available on [Atmoshepere](https://atmospherejs.com/ukabu/material-ui)).\r\n\r\nThe core of making it work, was to create standalone bundles using Browserify. Since we can't run scripts when adding the Meteor package, I had to commit the generated bundles in git. To make it easier I created added a script build:meteor to the npm package. So whenever I update from upstream, I can run `npm run build:meteor` to get updated bundles and then commit them to git.\r\n\r\nThen it's just a matter of properly exporting the objects. This is a bit different on the client and the server as Browserify standalone bundle will add the object to either `window` or `global`."}}