## 一个组件的自我修养 BUG [一个组件的自我修养](https://godbasin.github.io/front-end-playground/front-end-basic/understanding/component-with-itself.html#%E7%BB%84%E4%BB%B6%E4%B8%8E%E5%A4%96%E7%95%8C) 在这篇文章里,`props`里的写法有点问题,你的本意应该是默认是一个空对象,但是`() => {}`种的 `{}`会被当成一个代码块。 应该这么 `() => ({})` 