Conditionals in reusable components attract bugs and make the codebase complex. Building smaller, more specialized objects is an alternative approach.
Sort: