说 {profilePic} 未定义
Says {profilePic} un-defined
VS 说我没有问题,但我所有的浏览器都说它是未定义的。感谢所有输入。
import React from 'react';
import "./Post.css";
import{Avatar} from '@material-ui/core';
function Post({ pofilePic, image, username, timestamp,message}) {
return (
<div className="post">
<div className="post__top">
<Avatar src={profilePic}
className="post__avatar"/>
<div className="post__topInfo">
<h3>{username}</h3>
<p>Timesatmp....</p>
</div>
</div>
```
一处拼写为pofilePic
,另一处拼写为profilePic
。
VS 说我没有问题,但我所有的浏览器都说它是未定义的。感谢所有输入。
import React from 'react';
import "./Post.css";
import{Avatar} from '@material-ui/core';
function Post({ pofilePic, image, username, timestamp,message}) {
return (
<div className="post">
<div className="post__top">
<Avatar src={profilePic}
className="post__avatar"/>
<div className="post__topInfo">
<h3>{username}</h3>
<p>Timesatmp....</p>
</div>
</div>
```
一处拼写为pofilePic
,另一处拼写为profilePic
。