How does one pass a prop without value to a react component?
<SomeComponent disableHeight> {/* here */}
{({width}) => (
<AnotherComponent
autoHeight {/* and here */}
width={width}
height={300}
{...otherProps}
/>
)}
</SomeComponent>
Note - there is no default prop values specified for those props.
I can't seem to find any references on that, but by observing values for those properties they get assigned to true
by default.