使用JavaScript 操作符如 if 或者条件操作符来创建渲染当前状态的元素,并且 ... return <GuestGreeting />; } ReactDOM.render( // 修改为isLoggedIn={true} 试试: ...
確定! 回上一頁