const { apiKey, component } = props; if (!apiKey) { return <div>Empty apiKey!</div>; } return ( <div> <div>Rendering Child: </div> <>{component}</> </div> );