mirror of
https://github.com/facebook/react.git
synced 2026-02-26 05:35:21 +00:00
12 lines
377 B
JavaScript
12 lines
377 B
JavaScript
// Forget currently bails out when it detects a potential mutation (Effect.Mutate)
|
|
// to an immutable value. This should not apply to unknown / untyped hooks.
|
|
|
|
// Default feature flags:
|
|
// enableAssumeHooksFollowRulesOfReact=false
|
|
// enableTreatHooksAsFunctions=true
|
|
function Component(props) {
|
|
const x = useUnknownHook1(props);
|
|
const y = useUnknownHook2(x);
|
|
return y;
|
|
}
|