### When NOT to Use computed() **Within JSX, reactivity is automatic—you don't need `computed()`:** ```tsx import { computed, UI, pattern } from 'commontools'; interface Input { userName: string; user: { name: string }; } export default pattern(({ userName, user }) => { return { [UI]: ( <> {/* ❌ Don't use computed() in JSX */}
{computed(() => `Hello, ${userName}`)} {/* Unnecessary! */}
{/* ✅ Just reference directly */}
Hello, {userName}
{/* ❌ Don't use computed() for simple property access */}
{computed(() => user.name)} {/* Unnecessary! */}
{/* ✅ Direct access works fine */}
{user.name}
), }; }); ```