coatue-oss / angular2react

One line of code to turn any Angular 1 Component into a React Component
Other
131 stars 25 forks source link

Context Api doesn't work #31

Open RodolfoSilva opened 5 years ago

RodolfoSilva commented 5 years ago

Has any example with Context API? I've tried use Context Api with this example

https://github.com/bcherny/angular2react-demos/tree/master/multi-file

But doesn't work.

I thinks is because angular2react create a new tree.

image

bcherny commented 5 years ago

I think it should just work, as long as all of your React components are descendent of your Provider.

RodolfoSilva commented 5 years ago

@bcherny I've tried use in your example but doesn't work :( Has a PR with React Portal, but doesn't work too.

https://github.com/coatue-oss/react2angular/pull/107