19 lines
273 B
JavaScript
19 lines
273 B
JavaScript
|
import { identity } from "shared-runtime";
|
||
|
function Component(props) {
|
||
|
let {
|
||
|
x
|
||
|
} = props;
|
||
|
const foo = () => {
|
||
|
x = props.x |> identity(%);
|
||
|
};
|
||
|
foo();
|
||
|
return {
|
||
|
x
|
||
|
};
|
||
|
}
|
||
|
export const FIXTURE_ENTRYPOINT = {
|
||
|
fn: Component,
|
||
|
params: [{
|
||
|
x: 42
|
||
|
}]
|
||
|
};
|