profectus-docs/docs/guide/advanced-concepts/creating-features.md

6 lines
562 B
Markdown
Raw Normal View History

2022-03-05 22:34:42 -06:00
# Creating Features
\# TODO
2022-07-17 17:25:15 -05:00
Because typescript does not emit JS, if a value is supposed to be a function it is impossible to determine if a given function is the intended value or a function that returns the actual value. For this reason it is not recommended for any feature types to include properties that are `Computable<Function>`s, and all functions _will_ be wrapped in `computed`. The notable exception to this is [JSX](../important-concepts/coercable#render-functions-jsx), which uses a utility function to mark that a function should not be wrapped.