17 lines
424 B
TypeScript
17 lines
424 B
TypeScript
import {makeObject_Primitives, mutateAndReturn, toJSON} from 'shared-runtime';
|
|
|
|
function Component(_props) {
|
|
const collection = [makeObject_Primitives()];
|
|
const results = [];
|
|
for (const item of collection) {
|
|
results.push(<div key={toJSON(item)}>{toJSON(mutateAndReturn(item))}</div>);
|
|
}
|
|
return <div>{results}</div>;
|
|
}
|
|
|
|
export const FIXTURE_ENTRYPOINT = {
|
|
fn: Component,
|
|
params: [],
|
|
isComponent: true,
|
|
};
|