/// import { recipe, UI } from "commontools"; interface State { items: number[]; highlight: string; } export default recipe("MapOuterElement", (state) => { const element = state.highlight; return { [UI]: (
{state.items.map((_, index) => ( {element} ))}
), }; });