hoistableObjectPropExtract `{{objectText}}` to a module-level const — this inline JSX prop object is fully static and causes unnecessary reference churn on every render.small-rules/prefer-hoisted-jsx-object-propertiesPrefer extracting inline JSX object props to module-level constants when the entire object is statically hoistable.
hoistableObjectPropExtract `{{objectText}}` to a module-level const — this inline JSX prop object is fully static and causes unnecessary reference churn on every render.This rule does not accept options.
function View() { return <Component options={{ enabled: true, count: 5 }} />;}const PROPS = { enabled: true };
const view = <Component options={PROPS} />;