Testing form input using github pages.
Secret 1 is processed via a traditional html form. When the form is submitted, the the pages is reloaded with the values as parameters. This not ideal for sensitive values as the http calls are handled by GitHub and may be logged.
Secret 2 is adapted for React, based on these docs. Specifically, the use of event.preventDefault();
in the submit handler prevents the http call from happening.
npm start
See: https://skarfie123.github.io/ghp-react/
npm run deploy