import React, { useRef, } from 'react' import { Extension } from '../../types' interface Props { ext: Extension } export default function ExtInstance(props: Props) { const elRef = useRef() const { // eslint-disable-next-line @typescript-eslint/naming-convention _mount, } = props.ext return (
{ if (el) { _mount!((elRef.current = el)) } }} /> ) }