错误的写法: 组件首字母没有大写
function clock(props){
return (
<div>
<h1>现在的时间是{
props.date.toDateString()}</h1>
错误的写法: 组件首字母没有大写
function clock(props){
return (
<div>
<h1>现在的时间是{
props.date.toDateString()}</h1>