26 lines
401 B
JavaScript
26 lines
401 B
JavaScript
function Component(props) {
|
|
const x = [];
|
|
const f = arg => {
|
|
const y = x;
|
|
y.push(arg);
|
|
};
|
|
f(props.input);
|
|
|
|
return [x[0]];
|
|
}
|
|
|
|
export const FIXTURE_ENTRYPOINT = {
|
|
fn: Component,
|
|
params: [],
|
|
sequentialRenders: [
|
|
{input: 42},
|
|
{input: 42},
|
|
{input: 'sathya'},
|
|
{input: 'sathya'},
|
|
{input: 42},
|
|
{input: 'sathya'},
|
|
{input: 42},
|
|
{input: 'sathya'},
|
|
],
|
|
};
|