score:0

Accepted answer
export default function App() {
  let load = true;
  return (
    <div className="App">
      {load === true ? <h1>Loading... </h1> : <h1>no data</h1>}
    </div>
  );
}

Related Query

More Query from same tag