Conditionally rendering JSX in React functions
You might have occasion to render your JSX in React only in certain conditions. Like maybe if no props were passed to the function, rather than give an error, you just want nothing on the page instead.
The obvious thing to do would be this:
const App...
blog.nicm42.me.uk1 min read