View Source Love.Component (love_ex v0.1.0)
🔥 Rekindle your love for components.
Link to this section Summary
Functions
Defines a state field.
Defines a component prop field.
Puts many computed values.
Puts a computed value into the component.
Puts many state changes into the component.
Defines a state field.
Link to this section Functions
Defines a state field.
The second arg is the initial value for this state field (defaults to nil
if omitted).
Defines a component prop field.
options
Options
:default
- optional; if specified, this prop is considered optional, and will be assigned the default value during mount. If nothing is passed, this prop is required.nil
is a valid default value (i.e. it will be optional)
Puts many computed values.
Puts a computed value into the component.
Puts many state changes into the component.
This will also immediately reevaluate any necessary reactive fields, so call this as infrequently as possible (i.e. state changes should be batched).
Defines a state field.
The second arg is the initial value for this state field (defaults to nil
if omitted).