Course contentsShow
React
Lesson 121 of 2,3964. Conditional Rendering in JSXPro lesson

Ternaries for Attribute Values

Use ternaries to conditionally set props: className={isActive ? 'active' : 'inactive'}.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.