import React from "react";
import ReactDOM from "react-dom";
const isLoading = true;
const loadData = () => {
return isLoading?(<div>loadign...</div>):(<div>加载完成</div>)
};
const title = (<div>{loadData()}</div>)
ReactDOM.render(title, document.getElementById("root"));