Skip to content

How can I use this solution in React? #411

Closed
@chwonseok

Description

@chwonseok

Hey there, first of all, thanks for this nice solution what I've been looking for!

I'm currently stuck with one minor issue though.
The issue is that it doesn't print thankyou_message after the mail has been successfully sent, which means I see {"result": "success", ...} only.

In public folder, I attached form-submission-handler.js, and the place where I added <script>tag is in the index.html in public folder, like below.

<body>
  <div id="root"></div>
  <script data-cfasync="false" src="%PUBLIC_URL%/form-submission-handler.js"></script>
</body>

If it is not the way or place to use this solution in JSX, could you please let me know?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions