Optional
client: null | IAgoraRTCClientCreated using the Web SDK's IAgoraRTC.createClient
method.
import { useConnectionState } from "agora-rtc-react";
function App() {
const connectionState = useConnectionState();
return <div>{connectionState}</div>;
}
Returns the detailed connection state of the SDK.