Skip to content

Instantly share code, notes, and snippets.

@GreenGeorge
Last active March 25, 2020 01:48
Show Gist options
  • Save GreenGeorge/ae24e7d6243933bcf26b624b577cf95d to your computer and use it in GitHub Desktop.
Save GreenGeorge/ae24e7d6243933bcf26b624b577cf95d to your computer and use it in GitHub Desktop.
// ...
CF.customerReady(() => {
const customer = CF.customer.get('code');
const props = {customer: customer};
const container = document.getelementById('container');
const formElement = React.createElement(form, props)
ReactDOM.render(formElement, container);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment