JSTQL-JS-Transform/output_testing/1006object-expression-computed-key-non-reactive.js

16 lines
308 B
JavaScript
Raw Normal View History

import { identity } from "shared-runtime";
const SCALE = 2;
function Component(props) {
const key = SCALE;
const context = {
[key]: [props.value] |> identity(%)
};
return context;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
key: "Sathya",
value: "Compiler"
}]
};