Docs
/Hooks
/useXRPLGlobal()
useXRPLGlobal()
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 { useXRPLGlobal } from '@xrpl-components/react/hooks';
export function YourComponent() {
const { xrpl } = useXRPLGlobal();
const isValid = xrpl.isValidAddress('rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh'); // true
return <div>{/* ... */}</div>;
}