pub struct ThinWrapper {
pub file: PathBuf,
pub line: u32,
pub component: String,
pub child_component: String,
}Expand description
A located thin-wrapper / passthrough component: a React/Preact component
whose entire body is return <Child {...props}/> (a single spread-forwarded
child render, no host wrapper, no own value-add). It is pure structural
indirection, a CANDIDATE for inlining at call sites or deleting. Health
signal (rule defaults to off, opt-in): never a correctness error. Zero-FP
doctrine: forwardRef / memo / exported / context-provider /
cloneElement / render-prop / named-attr / unresolved-child wrappers all
abstain (each is an intentional indirection or unprovable shape).
Fields§
§file: PathBufThe file containing the wrapper component.
line: u321-based line of the wrapper component definition (the finding anchor for jump-to-source and line-level suppression).
component: StringThe wrapper component name.
child_component: StringThe single child component the wrapper forwards its props to (as written at the render site).