import {render, BuyerConsent} from '@shopify/post-purchase-ui-extensions-react'; import {useState} from 'react'; render('Checkout::PostPurchase::Render', () => ); function App() { const [consent, setConsent] = useState(false) return ( ); }