diff --git a/content/docs/reference-react.md b/content/docs/reference-react.md index ae0912ae9..61ef81518 100644 --- a/content/docs/reference-react.md +++ b/content/docs/reference-react.md @@ -49,9 +49,10 @@ See [Using React without JSX](/docs/react-without-jsx.html) for more information - [`React.Fragment`](#reactfragment) -### Other +### Refs - [`React.forwardRef`](#reactforwardref) +- [`React.createRef`](#reactcreateref) * * * @@ -227,4 +228,9 @@ You can also use it with the shorthand `<>` syntax. For more information, see `React.forwardRef` accepts a render function that receives `props` and `ref` parameters and returns a React node. Ref forwarding is a technique for passing a [ref](/docs/refs-and-the-dom.html) through a component to one of its descendants. This technique can be particularly useful with [higher-order components](/docs/higher-order-components.html): `embed:reference-react-forward-ref.js` -For more information, see [forwarding refs](/docs/forwarding-refs.html). \ No newline at end of file +For more information, see [forwarding refs](/docs/forwarding-refs.html). + +### `React.createRef` + +`React.createRef` creates a ref that can be attached to React elements via the ref attribute. +`embed:16-3-release-blog-post/create-ref-example.js` \ No newline at end of file