Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. export class AngularReactLabel implements AfterViewInit {
  2.  
  3. constructor(private hostRef: ElementRef) {}
  4.  
  5. ngAfterViewInit(): void {
  6. const hostElement = this.hostRef.nativeElement;
  7. const LabelToShow = () => (
  8. // Actual use here, might include data-binding in a real world scenario
  9. <ReactLabel></ReactLabel>
  10. );
  11. ReactDOM.render(<LabelToShow />, hostElement);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement