U r*_*u s 8 ecmascript-6 reactjs
替换问号的正确价值是什么?为什么?
RecentProjectsSection.propTypes = {
onClose: React.PropTypes.func.isRequired,
projects: React.PropTypes.array.isRequired,
};
RecentProjectsSection.defaultProps = {
onClose: ?????
projects: [],
};
Run Code Online (Sandbox Code Playgroud)
Lyu*_*mir 12
你需要一个功能,它的功能 - 取决于你.
RecentProjectsSection.defaultProps = {
onClose: () => {
// your logic here...
return;
}
projects: [],
};
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6905 次 |
| 最近记录: |