WORKING Pattern: Top-level button with disabled attribute
Current count: {count}
Simulate pending state
Simulate processing state
{/* WORKING: Button always rendered at top level */}
{buttonText}
This pattern works correctly! Button always rendered, uses disabled
for state.
),
count,
pending,
isProcessing,
};
});