getAlby / lightning-browser-extension

The Bitcoin Lightning Browser extension that connects to different wallet interfaces and brings deep lightning integration to the web
https://getalby.com
MIT License
529 stars 193 forks source link

[Feature] Use a forms library for the extension forms #1891

Open rolznz opened 1 year ago

rolznz commented 1 year ago

Feature description

Benefits: form validation, saving/restoring form states, more consistency, simpler submission, less code/boilerplate/duplication, and more.

Describe the solution

Choose a form library such as https://github.com/react-hook-form/react-hook-form and gradually migrate forms to use the form library instead of custom code.

escapedcat commented 1 year ago

I'm with you ;)
Even though we do not have lot's of validation (yet... right?) it will align our forms and makes to code-base easier to handle in the future.