When attempting to use a string as the ref, I encountered a warning when trying to access ref?.current
Property 'current' does not exist on type 'string'
What should be used for the ref prop in the interface? I am uncertain of the upfront type for ref. It could be HTMLInputElement, a div, or any other element.
interface IProps {
name: string,
time: number
ref?: string
}