docs: update readme

This commit is contained in:
dntzhang 2019-12-27 12:09:14 +08:00
parent e2a4c05732
commit 884c397bd7
2 changed files with 12 additions and 0 deletions

View File

@ -229,6 +229,12 @@ define('my-component', _ => (
})
```
### 通过 prop 注入 use 或 useSelf
```jsx
<my-counter use={['count']} ></my-counter>
```
## Omi 生态
[→ Omi 生态学习路线图](https://github.com/Tencent/omi/tree/master/assets/rm.md)

View File

@ -233,6 +233,12 @@ define('my-component', _ => (
})
```
### Inject use or useSelf through prop
```jsx
<my-counter use={['count']} ></my-counter>
```
## Ecosystem of Omi
#### :100:Base