import React from 'react' ; export function createRefPolyfill < T > ( ) { if ( React . createRef != null ) { return React . createRef < T > ( ) ; } const ref = ( instance ) => { ref . current = instance ; } ; ref ( null ) ; return ref ; }