import React from 'react';
import {
render,
Banner,
useExtensionApi,
} from '@shopify/checkout-ui-extensions-react';
// You can support multiple static extension points
render('Checkout::Actions::RenderBefore', () => (
));
render(
'Checkout::DeliveryAddress::RenderBefore',
() => ,
);
render(
'Checkout::ShippingMethods::RenderAfter',
() => ,
);
// You can also support a dynamic extension point which can be moved by the merchant
render('Checkout::Dynamic::Render', () => (
));
function Extension() {
const {extensionPoint} = useExtensionApi();
return (
This extension is rendering in the{' '}
{extensionPoint} extension point.
);
}