📜  按钮反应中的三元运算符 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:32.905000             🧑  作者: Mango

代码示例1
render() {
  const isLoggedIn = this.state.isLoggedIn;
  return (
    
The user is {isLoggedIn ? 'currently' : 'not'} logged in.
); }