mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
15 lines
333 B
JavaScript
15 lines
333 B
JavaScript
// writing to primitives is not a 'mutate' or 'store' to context references,
|
|
// under current analysis in AnalyzeFunctions.
|
|
// <unknown> $23:TFunction = Function @deps[<unknown>
|
|
// $21:TPrimitive,<unknown> $22:TPrimitive]:
|
|
|
|
function Component() {
|
|
let x = 40;
|
|
|
|
const fn = function () {
|
|
x = x + 1;
|
|
};
|
|
fn();
|
|
return x;
|
|
}
|