Skip to content

Commit 99d5ce4

Browse files
committed
Replaced hyphen with em dash
1 parent 4250435 commit 99d5ce4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/blog/2018-03-29-react-v-16-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ We can use the above HOC to wire components up to the theme context without havi
4747

4848
`embed:16-3-release-blog-post/fancy-button-example.js`
4949

50-
HOCs typically [pass props through](/docs/higher-order-components.html#convention-pass-unrelated-props-through-to-the-wrapped-component) to the components they wrap. Unfortunately, [refs are not passed through](/docs/higher-order-components.html#refs-arent-passed-through). This means that we can't attach a ref to `FancyButton` if we use `FancyThemedButton`- so there's no way for us to call `focus()`.
50+
HOCs typically [pass props through](/docs/higher-order-components.html#convention-pass-unrelated-props-through-to-the-wrapped-component) to the components they wrap. Unfortunately, [refs are not passed through](/docs/higher-order-components.html#refs-arent-passed-through). This means that we can't attach a ref to `FancyButton` if we use `FancyThemedButton` so there's no way for us to call `focus()`.
5151

5252
The new `forwardRef` API solves this problem by providing a way for us to intercept a `ref` and forward it as a normal prop:
5353
`embed:16-3-release-blog-post/forward-ref-example.js`

0 commit comments

Comments
 (0)