Skip to content

Commit f14ff7d

Browse files
committed
Changed 20 solution
1 parent f7c69d7 commit f14ff7d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import { useRef } from "react";
22

33
export const Component = () => {
4-
const ref = useRef<string>();
4+
const firstOverload = useRef<string>("124123123");
55

6-
ref.current = "Hello";
6+
firstOverload.current = "123j12jhb123jhb";
7+
8+
const secondOverload = useRef<string>(null);
9+
10+
secondOverload.current = "Hello";
11+
12+
const thirdOverload = useRef<string>();
713

814
return null;
915
};

0 commit comments

Comments
 (0)