Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adobe Experience Cloud without AEM | Contact form submit handler
handleSubmit = event => {
localStorage.setItem("likeCats", this.state.likeCats);
var event = new CustomEvent('contact-form-submit');
var obj = document.querySelector("body");
obj.dispatchEvent(event);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.