Skip to content

Commit 9204763

Browse files
Merge pull request #5159 from beawar/fix-portal-type-causing-missing-declaration
Fix types build by specifying return type on portal render method
2 parents c7a1c79 + 1b13e38 commit 9204763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/portal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Portal extends Component<PortalProps> {
4646
private el: HTMLDivElement;
4747
private portalRoot: HTMLElement | null = null;
4848

49-
render() {
49+
render(): React.ReactPortal {
5050
return ReactDOM.createPortal(this.props.children, this.el);
5151
}
5252
}

0 commit comments

Comments
 (0)