Field's Anatomy
Fields are the heart of this engine, and you can deal whit then in two flavors:
The Declarative Way
Note that every prop comes prefixed with f
, like fName
. This is important because we don't want props been overwritten when interfaces merge, on wrapping fields (see: The Factored Way).
The Factored Way
Factories make using fields blase fast! Just bake once, e you are ready to go. Note that the new field have the two interfaces. It's own props, plus, the Field props.
Important: I recommend to sufix every baked field with "Field", to avoid messes with the native ones... After all, the baked one, is a new component!
Last updated
Was this helpful?