14 lines
308 B
JavaScript
14 lines
308 B
JavaScript
|
import { useHook } from "shared-runtime";
|
||
|
function Component(props) {
|
||
|
const x = [];
|
||
|
useHook(); // intersperse a hook call to prevent memoization of x
|
||
|
props.value |> x.push(%);
|
||
|
const y = [x];
|
||
|
return [y];
|
||
|
}
|
||
|
export const FIXTURE_ENTRYPOINT = {
|
||
|
fn: Component,
|
||
|
params: [{
|
||
|
value: "sathya"
|
||
|
}]
|
||
|
};
|