Rest接口组件的命名

2017-01-04  本文已影响22人  方健

表示约定

A:[B]  表示A组件包含B组件
A:[B C] 表示A组件包含B组件和C组件

命名约定

ComponentR:[Component:[ComponentV]]

其中 ComponentR 为Restful接口的组件,例如

<BrowserR url="/items"/>

Component 为使用function接口的组件,例如

<Browser fetchItems={fetchItems}/>

Browser V为接受数据,用于显示的组件,例如

<BrowserV items={items}/>
上一篇 下一篇

猜你喜欢

热点阅读