]> git.cworth.org Git - lmno.games/commitdiff
Add a submit handler function for our form
authorCarl Worth <cworth@cworth.org>
Sun, 7 Jun 2020 22:22:28 +0000 (15:22 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 7 Jun 2020 22:22:28 +0000 (15:22 -0700)
This is still a stub that doesn't actually _do_ aything yet.

Note that we're using the "uncontrolled components" React pattern for
the input field here as described here:

https://reactjs.org/docs/uncontrolled-components.html

The alternative, forcing a new call to React's setState on every
keypress seems really silly to me, (I don't care to have React getting
involved on every keypress).


No differences found