Optional client: null | IAgoraRTCClientIf provided, the passed IAgoraRTCClient object is returned. If not provided, the IAgoraRTCClient object obtained from the parent component's context is returned.
import { useRTCClient } from "agora-rtc-react";
function App() {
const client = useRTCClient();
return <></>;
}
Returns the IAgoraRTCClient object.