DEV Community

Discussion on: Refactoring Evan's viewInput function in elm-todomvc

Collapse
 
francescortiz profile image
Francesc Ortiz

This version is the standard way of programmatically doing HTML forms. This is the way to benefit of all the features that the browser can provide to help the user. You use the onEnter or other hacks when you need nonstandard functionality.