查看React Componet節點架構
發現會顯示為Unknow
只要在createClass時
加上 displayName 就可正確顯示了
例
SideBar = React.createClass
  displayName:"SideBar"
  render:->
    <div>
      <CatItem></CatItem>
      <SubCatItem>456</SubCatItem>
      <SingleCatItem>123</SingleCatItem>
    </div>
沒有留言:
張貼留言