Docs
/Hooks
/useXRPLContext()
useXRPLContext()
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 { useXRPLContext } from '@xrpl-components/react/hooks';
export function YourComponent() {
const { client, connectionState, error, reconnect } = useXRPLContext();
return <div>{/* ... */}</div>;
}