learn-to-send-email-via-google-script-html-no-server icon indicating copy to clipboard operation
learn-to-send-email-via-google-script-html-no-server copied to clipboard

Added a React version of index.js and form-submission-handler.js

Open autumn-lindberg opened this issue 1 year ago • 1 comments

Hi there!

This is an amazing project and I'd love to do some work on it if you'd allow me.

Here is a basic implementation of how your project could be implemented into a React component. No dependencies, validation is using regex. Submit button is disabled until input passes regex validation. Only one input is used, but the basic idea is there. I know this isn't the right branch to post it on, but I'd love to know your thoughts!

Please accept my humble PR ❤️

autumn-lindberg avatar Jan 17 '24 18:01 autumn-lindberg

thanks for the contribution & getting a working example going with React!

over the years, folks have been quite curious about React (#213, #308, #336, #411) and other frameworks (#254). Clearly, you are among good company :)

what I might suggest:

  • separate branch just for a react-demo, or some other code hosted solution (gist, codepen, etc.) -- this could be on a fork of the repo too, if you'd rather maintain it personally.
  • add a link on the main repo (maybe in a new Q&A at the bottom?) to the main trunk

does that seem do-able? do you have a preference on where to store the react example?

mckennapsean avatar Jan 21 '24 23:01 mckennapsean