Skip to content

Commit e91f361

Browse files
committed
fix: update containerRef type initialization
1 parent 08dd820 commit e91f361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/examples/getContainer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const { SubMenu } = Menu;
1919
const MenuItemGroup = Menu.ItemGroup;
2020

2121
export default () => {
22-
const containerRef = React.useRef<HTMLDivElement>();
22+
const containerRef = React.useRef<HTMLDivElement>(null);
2323
const [open, setOpen] = React.useState(false);
2424

2525
return (

0 commit comments

Comments
 (0)