@reeple/react package — @reeple/sdk is a plain class, so the idiomatic way to use it in React is a small custom hook.
useReeple.ts
CheckoutButton.tsx
Reeple reads and writes the DOM, so it only works in the browser. If you’re on Next.js, see the Next.js example for the client-only setup this requires.