Use explicit ternary operators instead of && for conditional rendering. Apply when rendering values that could be 0, NaN, or other falsy values that might render unexpectedly.
4.9
Rating
0
Installs
Frontend Development
Category
This skill addresses a specific React rendering pitfall with clear before/after examples. The description adequately conveys when to apply the skill (falsy values like 0, NaN), and the examples provide sufficient task knowledge for implementation. Structure is clean and appropriate for a focused skill. However, novelty is limited: this is a well-known React pattern that a CLI agent could handle with minimal prompting. The skill would be more valuable if it included automated detection patterns, AST transformation scripts, or broader conditional rendering scenarios (e.g., handling arrays, strings, undefined). As-is, it's a useful reference but doesn't significantly reduce token cost or complexity for an AI agent.
Loading SKILL.md…

Skill Author