有没有办法实现下面的条件呈现内容,而不是在return语句中使用{ renderAuthButton() },而是使用onCLick来实现运行renderAuthButton()?button>; return <button>Login</button>; }
<div className"> This is a
在使用className属性的任何地方,我都会收到错误消息className is not defined,并且配料将始终为null如果我删除了className属性,那么它将正常工作 import Reactfrom 'react';
import classes from 'C:/Users/oluad/Desktop/my-burger-appp/src/Components/Bug