a component with no grant and no state hooks is a projection a `view` expresses without code

style/prefer-view

Generated from the language definition for ruleset 1.7.

Severity: info

Since: 1.0

Summary: a component with no grant and no state hooks is a projection a view expresses without code

Fix: write it as a view over the same props, or keep it if it holds state the heuristic missed

See also: /book/views