Closed rileytg closed 7 years ago
I have similar problem with es6 class export and your solution with window kinda dont work. I'm trying to do that with Laravel using package react-laravel which is inspired by react-rails https://github.com/talyssonoc/react-laravel/issues/54
So no ideas any one? Have to stick with es5 for the moment?
Has anyone found a way to make this work with import/export
?
For es6 style imports and exports, you might be interested in checking out Shopify's sprockets-commoner.
Also, webpacker https://github.com/rails/webpacker
This is related to #238
i have a (mostly– no classes) es6 react component in another repo (i want to use in two rails apps) like this:
any options other than the
window.MyComponent
?