Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Oct 31, 2018
1 parent d630310 commit 904b936
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ define('my-counter', function() {
render(<my-counter />, 'body')
```

如果你不需要 effect 方法, 可以直接使用 `useData`:

```js
const [count, setCount] = this.useData(0)
```

## 快速入门

### 安装
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ define('my-counter', function() {
render(<my-counter />, 'body')
```

If you don't need effect, you can use `useData` directly:

```js
const [count, setCount] = this.useData(0)
```

## Getting Started

### Install
Expand Down

0 comments on commit 904b936

Please sign in to comment.