Skip to content

Instantly share code, notes, and snippets.

@maxkoretskyi
Created April 17, 2019 15:15
Show Gist options
  • Save maxkoretskyi/9472a088564dfd45628cc0a55ff5454d to your computer and use it in GitHub Desktop.
Save maxkoretskyi/9472a088564dfd45628cc0a55ff5454d to your computer and use it in GitHub Desktop.
export class AgGridReact extends React.Component {
portals: ReactPortal[] = [];
mountReactPortal(portal, reactComponent, resolve: (value: any) => void) {
this.portals = [...this.portals, portal];
this.batchUpdate(...);
}
render() {
return React.createElement<any>("div", {
style: this.createStyleForDiv(),
ref: (e: HTMLElement) => {
this.eGridDiv = e;
}
}, this.portals);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment