if (props.isRight=='true'){. //通过null 避免如下渲染. return null;. } return <div>. <h1>请输入正确密码</h1>. </div>. } ReactDOM.render(.
確定! 回上一頁