We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5c449d commit c72935aCopy full SHA for c72935a
1 file changed
examples/16-3-release-blog-post/forward-ref-example.js
@@ -6,7 +6,11 @@ function withTheme(Component) {
6
{theme => (
7
// Assign the custom prop "forwardedRef" as a ref
8
// highlight-next-line
9
- <Component {...rest} ref={forwardedRef} theme={theme} />
+ <Component
10
+ {...rest}
11
+ ref={forwardedRef}
12
+ theme={theme}
13
+ />
14
)}
15
</ThemeContext.Consumer>
16
);
0 commit comments