From 1b8dd36ae1781d9b45df411c7f2741149bb0d6bc Mon Sep 17 00:00:00 2001 From: Sunil Pai Date: Thu, 10 Jan 2019 14:47:51 +0000 Subject: [PATCH] createInstance -> createHandle --- content/docs/hooks-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/hooks-reference.md b/content/docs/hooks-reference.md index 9fddbcf6..a5f3baab 100644 --- a/content/docs/hooks-reference.md +++ b/content/docs/hooks-reference.md @@ -324,7 +324,7 @@ Note that `useRef()` is useful for more than the `ref` attribute. It's [handy fo ### `useImperativeHandle` ```js -useImperativeHandle(ref, createInstance, [inputs]) +useImperativeHandle(ref, createHandle, [inputs]) ``` `useImperativeHandle` customizes the instance value that is exposed to parent components when using `ref`. As always, imperative code using refs should be avoided in most cases. `useImperativeHandle` should be used with `forwardRef`: