re: Beginner's experience with React - a shout for feedback VIEW POST


Is this the proper way to do conditional rendering? Looks off to me but works just fine!

There are multiple ways, I wrote an article about this and the React docs has a section about this topic

The tl;dr off there is no single way, use any JS way to handle conditions.

code of conduct - report abuse