DEV Community

Discussion on: 4 Ways to Render JSX Conditionally in React

Collapse
 
rasaf_ibrahim profile image
Rasaf Ibrahim

Here, I am rendering short text (<p> tag) in the conditions to make the example short. But you are not limited to any specific html tag, you can render any html tag, even you can render another component.