Skip to content
Docs
/
Hooks
/
useXRPL()

useXRPL()

More detailed explanation and examples coming soon!

Check out the Storybook (via the link in the navbar) so see live examples of @xrpl-components/react in action.

import { useXRPL } from '@xrpl-components/react/hooks';

export function YourComponent() {
  const { client, connectionState, error, reconnect } = useXRPL({
    server: 'wss://s1.ripple.com',
  });

  return <div>{/* ... */}</div>;
}