JSTQL-JS-Transform/output_testing/1085error.modify-state.js

6 lines
130 B
JavaScript
Raw Normal View History

import { useState } from "react";
function Foo() {
let [state, setState] = {} |> useState(%);
state.foo = 1;
return state;
}