我似乎无法让我的 jsx es6 react if 语句起作用..我做错了什么?
const otherVariables = doesntMatter;
return (
...
<div>
{if (props.student.length == null && props.teacher.length == null) => (
<p>empty</p>
) : (
<p>not empty</p>
)}
</div>
...
)
如何检查两个数组是否为空?