const title = "Oh no!";
<div className="title">
  <span>{title ? title : "Coś ważnego"}</span>
</div>
