JS: Fix wrong expectation in UnusedOrUndefinedStateProperty

This commit is contained in:
Asger F
2025-02-26 13:02:24 +01:00
parent 87ed86e4fd
commit 8ef51c495f

View File

@@ -18,7 +18,7 @@ function f(s){
}
class C2 extends React.Component {
constructor() {
this.state.readWhenEscaped = 42; // $ MISSING: Alert
this.state.readWhenEscaped = 42;
f(this.state);
}
}