/// import { recipe, UI } from "commontools"; interface Item { id: number; name: string; } interface State { items: Item[]; prefix: string; } export default recipe("ElementComputed", (state) => { return { [UI]: ( {/* Performs computation on element property - should wrap in computed() */} {state.items.map((item, index) => ( Item #{index}: {item.name.toUpperCase()} ))} ), }; });