JSTQL-JS-Transform/output_testing/1061useMemo-switch-no-fallthrough.js

20 lines
357 B
JavaScript
Raw Normal View History

function Component(props) {
const x = (() => {
switch (props.key) {
case "key":
{
return props.value;
}
default:
{
return props.defaultValue;
}
}
}) |> useMemo(%);
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: ["TodoAdd"],
isComponent: "TodoAdd"
};