JSTQL-JS-Transform/output_testing/973object-expression-computed-key-constant-string.js

14 lines
268 B
JavaScript
Raw Normal View History

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