View
An entity that accepts a collection of properties and returns an element.
Definition
Although similar in syntax to a Function, the property order for views doesn't matter as it always produces the same type signature. The only valid return types for a view
are the Primitives. You can render a view the same way you might render a built-in element such as <div>
in a browser environment.
Empty Properties
If your view does not have any properties you can drop the parentheses as well.
Default Properties
You can make your properties optional by passing default values. Unlike a Function, there are no restrictions about which properties can have default values.
Last updated