Skip to content

Commit

Permalink
docs(hooks): update hooks.md (#4947)
Browse files Browse the repository at this point in the history
* Update hooks.md

* Update hooks.md
  • Loading branch information
L-Hknu authored and Garfield550 committed Nov 28, 2019
1 parent 94ed141 commit 74c9e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ title: Hooks
在 Taro 中使用 Hooks API 很简单,只需要从 `@tarojs/taro` 中引入即可。

```javascript
import { useEffect, useLayoutEffect, useReducer, useState, useRef, useCallback, useMemo } from '@tarojs/taro'
import { useEffect, useLayoutEffect, useReducer, useState, useContext, useRef, useCallback, useMemo } from '@tarojs/taro'
```

### `useState`
Expand Down

0 comments on commit 74c9e34

Please sign in to comment.