const [randomsResource] = createResource(() => [""], {
initialValue: [
"3".repeat(5 + Math.floor(Math.random() * 6)),
"a".repeat(7 + Math.floor(Math.random() * 20)),
"a".repeat(15 + Math.floor(Math.random() * 10)),
"a".repeat(15 + Math.floor(Math.random() * 10)),
"a".repeat(15 + Math.floor(Math.random() * 10)),
],
ssrLoadFrom: "initial",
});
const randoms = randomsResource();
return <div>{randoms[0]</div> ...
const [randomsResource] = createResource(() => [""], {
initialValue: [
"3".repeat(5 + Math.floor(Math.random() * 6)),
"a".repeat(7 + Math.floor(Math.random() * 20)),
"a".repeat(15 + Math.floor(Math.random() * 10)),
"a".repeat(15 + Math.floor(Math.random() * 10)),
"a".repeat(15 + Math.floor(Math.random() * 10)),
],
ssrLoadFrom: "initial",
});
const randoms = randomsResource();
return <div>{randoms[0]</div> ...