Instead of
const MyComponent = () => {
return isTrue ? <p>True!</p> : null
};
Use short-circuit evaluation
const MyComponent = () => {
return isTrue && <p>True!</p>
};
Instead of
const MyComponent = () => {
return isTrue ? <p>True!</p> : null
};
Use short-circuit evaluation
const MyComponent = () => {
return isTrue && <p>True!</p>
};
For further actions, you may consider blocking this person and/or reporting abuse
Aliyu Adeniji -
Abayomi Olatunji -
Hamza Nadeem -
heritech9 -
Top comments (0)