/// import { cell, recipe, UI } from "commontools"; export default recipe("MapArrayLengthConditional", (_state) => { const list = cell(["apple", "banana", "cherry"]); return { [UI]: (
{list.get().length > 0 && (
{list.map((name) => ( {name} ))}
)}
), }; });