File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export default function Page() {
3434 } ) ;
3535
3636 const secondBallRef = useCallback (
37- ( node : React . ElementRef < 'div' > ) => {
37+ ( node : React . ComponentRef < 'div' > ) => {
3838 secondBallRef1 ( node ) ;
3939 secondBallRef2 ( node ) ;
4040 } ,
@@ -53,7 +53,7 @@ export default function Page() {
5353 ) ;
5454
5555 const rootCallback = useCallback (
56- ( node : React . ElementRef < 'div' > ) => {
56+ ( node : React . ComponentRef < 'div' > ) => {
5757 firstBallRootRef ( node ) ;
5858 secondBallRootRef1 ( node ) ;
5959 secondBallRootRef2 ( node ) ;
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ type BallProps = {
44 color : string ;
55} ;
66
7- export const Ball = forwardRef < React . ElementRef < 'div' > , BallProps > (
7+ export const Ball = forwardRef < React . ComponentRef < 'div' > , BallProps > (
88 function Ball ( { color } , ref ) {
99 return (
1010 < div
1111 ref = { ref }
12- className = "mx-auto mb-12 mt-[110vh] h-24 w -24 rounded-full"
12+ className = "mx-auto mb-12 mt-[110vh] size -24 rounded-full"
1313 style = { { backgroundColor : color } }
1414 />
1515 ) ;
You can’t perform that action at this time.
0 commit comments