ic-reactor
    Preparing search index...

    Variable useAgentConst

    useAgent: () => undefined | types.HttpAgent = AgentHooks.useAgent

    Accesses the current agent instance.

    Type declaration

     function AgentComponent() {
       const agent = useAgent();
    
       // Use agent for interacting with the Internet Computer.
       return 
    {agent.isLocal() ? 'Local' : 'Remote'}
    ; }