react2angular icon indicating copy to clipboard operation
react2angular copied to clipboard

Mounting react component in @angular/router

Open mj-jadhav opened this issue 5 years ago • 2 comments

I want to migrate my angularJS application to react by moving one component at a time. Every component is mounted using angular-router. Can you please share an example on how to import react component in angular-router using react2angular?

mj-jadhav avatar Apr 24 '19 20:04 mj-jadhav

@mj-jadhav you can use ui-router/react-hybrid to achieve that. It gives you the ability to render both angularjs and React component.

gal-terra avatar May 09 '19 15:05 gal-terra

@gal1419 I checked that library, but my application is built on @angular/router, so wanted to see if I can easily use react2angular with the existing code(@angular/router). But if it's not possible then I'll have to replace angular-router with ui-router/react-hybrid anyway. I'm keeping this as my last option ;)

mj-jadhav avatar May 14 '19 15:05 mj-jadhav