import * as React from "react" ; import { render } from "@testing-library/react" ; import { useRefState } from "../../../core-react/utils/hooks/useRefState" ; describe ( "useRefState" , ( ) => { it ( "should use ref state" , ( ) => { function TestComponent ( ) { const [ testRef ] = useRefState < HTMLDivElement > ( ) ; return ( < div ref = { testRef } / > ) ; } render ( < TestComponent />); } ) ; } ) ;