I have done a ReactJS component with a Redux store , binding two together using react-redux.
i have written this code using ES6 and webpack, when i run the component individually and test it inside the code it self by an ES6 import the code is working fine.
But i want to distribute the component as a reusable html element to be used in other projects in our organization, so i got the webpack build and used it inside a angularjs project by binding the component using a angular directive. but then i face many problems, the component is not working as expected.
i have posted a seperate post about the problem here stack overflow question
what i wanted to know is the methodology of distributing a reusable react component written using ES6 and bundled webpack or other bundling mechanism, and using the component inside an ES5 source code.please help with me some resources, guides or some pointers if possible.