Search code examples
angularreactjstypescriptminifyweb-frameworks

Integrate React component with Angular


I found a rather large graphing framework for React (15.0.0). But I use Angular (4.4.0-RC). How do I proceed?

Do I rewrite my whole project in React? - Can I pass data acquired through Angular's HttpClient to React components? - Is there a trick to minifying it all together, e.g.: through .angular-cli.json or vanilla webpack?


Solution

  • Do I rewrite my whole project in React?

    I would look for a vanilla JS library that does the same.

    Can I pass data acquired through Angular's HttpClient to React components?

    You can integrate angular 2 and react quite easily as react only works on a particular dom node.

    You can use a data managment library like mobx that allows sharing between angular and react.