A couplemorethings are worth mentioning before starting for real regarding the way you define Boolean attributes in JSX. If you set an attribute without a value, JSX assumes that its value is true, following the same behavior of the HTMLdisabledattribute, for example.
This means that if we want to set an attribute to false, we have to declare it explicitly as false:
This can be confusing in the beginning, because we may think that omitting an attribute would mean false, but it is not like that. With React, we should always be explicit to avoid confusion.