From 74c9e34887a2e082eba79fd84c49fc229940b2ba Mon Sep 17 00:00:00 2001 From: Lawliet <37376096+L-Hknu@users.noreply.github.com> Date: Thu, 28 Nov 2019 12:42:37 +0800 Subject: [PATCH] docs(hooks): update hooks.md (#4947) * Update hooks.md * Update hooks.md --- docs/hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hooks.md b/docs/hooks.md index 120c0fe870c4..6a74dd2a0b1c 100644 --- a/docs/hooks.md +++ b/docs/hooks.md @@ -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`