Files
react/compiler/crates/react_hermes_parser/tests/fixtures/error.invalid-freeze-mutable-lambda-reassign-local.js
2024-04-02 16:49:31 -07:00

8 lines
151 B
JavaScript

function Component(props) {
let x = "";
const onChange = (e) => {
x = e.target.value;
};
return <input value={x} onChange={onChange} />;
}