Components#
Components are "view-only" chunks of UI. In other words, the UI they render depends only on the values of the parameters passed to them -- no reading data from any sort of state, local or remote.
These properties make components extraordinarily easy to test, particularly by
adding @Preview versions within the source code file.
- Note
@Previewversions also render immediately in the preview pane, dramatically improving development velocity.