In this short article, we will talk about optimizing conditional rendering code in React and some general good practices. Through the years I have seen some bad examples that make your code buggy, but also unreadable. So we can start with first good practice. Avoid unnecessary ternary operators Let's say