Reactjs – Why shouldn't if statement conditions (props) be inside curly braces in react components?
I'm reading the react documentation and on the "props" section they have a solution that takes a size prop and pass it inside the if statement's condition. Why don't we have "size" inside curly braces here? Shouldn't the props be…