Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoDidMountSetStateRule rule.Rule = reactutil.MakeNoMethodSetStateRule(reactutil.NoMethodSetStateConfig{ RuleName: "react/no-did-mount-set-state", MethodName: "componentDidMount", ShouldBeNoop: reactutil.MethodNoopAtReactVersion(16, 3, 0), })
NoDidMountSetStateRule is a thin wrapper around upstream's `makeNoMethodSetStateRule('componentDidMount')` factory.
`componentDidMount` is in upstream's `methodNoopsAsOf` map (>= 16.3.0), so the rule becomes a no-op when the user explicitly pins React in [16.3.0, 999.999.999). No `UNSAFE_` alias is checked — upstream calls the factory without a `shouldCheckUnsafeCb`.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.