1 2 3 4 5 6 7 8 9
import { Button } from "./Button"; const ButtonWrapper = (props: { label: string }) => <Button {...props} />; export const CheckoutForm = () => ( <form> <ButtonWrapper label="Place order" /> </form> );