16 lines
No EOL
281 B
JavaScript
16 lines
No EOL
281 B
JavaScript
function Component(props) {
|
|
const [x, setX] = 0 |> useState(%);
|
|
const foo = () => {
|
|
1 |> setX(%);
|
|
};
|
|
if (props.cond) {
|
|
2 |> setX(%);
|
|
foo();
|
|
}
|
|
return x;
|
|
}
|
|
export const FIXTURE_ENTRYPOINT = {
|
|
fn: Component,
|
|
params: ["TodoAdd"],
|
|
isComponent: "TodoAdd"
|
|
}; |