Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class AngularReactLabel implements AfterViewInit {
- constructor(private hostRef: ElementRef) {}
- ngAfterViewInit(): void {
- const hostElement = this.hostRef.nativeElement;
- const LabelToShow = () => (
- // Actual use here, might include data-binding in a real world scenario
- <ReactLabel></ReactLabel>
- );
- ReactDOM.render(<LabelToShow />, hostElement);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement