Question from the React ⚛️ test

A React component that returns a boolean.

Archived

What does this component display?

const SomeComponent=(props)=>{
    return(typeof props.abc==="number");
}
Author: Vincent CotroStatus: Archived(New question!)(Update)Question passed 362 times
-1
Community Evaluations
developer avatar
Ambiguous
Pierre Turnbull
05/09/2024
It is possible to return a boolean. It does not make sense from a practical perspective, and it won't display anything, but it is possible.