import * as React from 'react';
import * as HookReact from './hookReact';

component Foo() {
    const x = React.useRef(null); // ok, even though currently useRef is a function not a hook
    return null;
}

function Bar(props: unknown) {
    const x = HookReact.useRef(null); // ok, env though this useRef is a hook and we're in a function
    return null;
}
