From f21d4f857ce54a9205d01eb0dfbb68d66165d44b Mon Sep 17 00:00:00 2001 From: Vladimir Tikunov Date: Sat, 14 Jan 2017 22:36:55 +0300 Subject: [PATCH] Remove error ref to the 'render' function (#8781) What is the `render` function of a functional component? --- docs/refs-and-the-dom.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/refs-and-the-dom.md b/docs/refs-and-the-dom.md index b40bc00e..50e800e2 100644 --- a/docs/refs-and-the-dom.md +++ b/docs/refs-and-the-dom.md @@ -73,7 +73,7 @@ class AutoFocusTextInput extends React.Component { } ``` -You may not use the `ref` attribute on functional components because they don't have instances. You can, however, use the `ref` attribute inside the `render` function of a functional component: +You may not use the `ref` attribute on functional components because they don't have instances. You can, however, use the `ref` attribute inside the functional component: ```javascript{2,3,6,13} function CustomTextInput(props) {