@keystatic/core

Search for an npm package
import { useState } from 'react';
const $empty = Symbol.for('react.memo_cache_sentinel');
function c(size) {
// eslint-disable-next-line react-compiler/react-compiler
// eslint-disable-next-line react-hooks/rules-of-hooks
return useState(() => {
const $ = new Array(size);
for (let ii = 0; ii < size; ii++) {
$[ii] = $empty;
}
// @ts-ignore
$[$empty] = true;
return $;
})[0];
}
export { c };