function MyComponent() {
let someVal = true;
return (
....
<div>
{
someVal && (
<MyAnotherComponent1 />
)
}
</div>
)
}