JSTQL-JS-Transform/output_testing/1195object-expression-computed-key-constant-number.js

14 lines
No EOL
267 B
JavaScript

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