virtual-form
Create a virtual-dom form.
Installation
$ npm install virtual-form
Usage
const virtualForm = const vel =
output
API
formContent = virtualForm(h, [opts,] elements)
Create new form content. There are several types of elements that can be created:
simple
custom
label
address
FAQ
form
element created too?
Why isn't the Creating a flat array of input
s has a significantly simpler interface than
when a form
element is also created. For instance, users might want to attach
listeners to ev-submit
or set classes.
h
need to be passed in?
Why does Though virtual-dom
is lightweight, if every package pulls in their own
version, file size quickly grows. Instead it's better to pull in virtual-dom
once and pass references down throughout the application.