Browse Source

prettier

main
Toru Kobayashi 7 years ago
parent
commit
c72935a054
  1. 6
      examples/16-3-release-blog-post/forward-ref-example.js

6
examples/16-3-release-blog-post/forward-ref-example.js

@ -6,7 +6,11 @@ function withTheme(Component) {
{theme => (
// Assign the custom prop "forwardedRef" as a ref
// highlight-next-line
<Component {...rest} ref={forwardedRef} theme={theme} />
<Component
{...rest}
ref={forwardedRef}
theme={theme}
/>
)}
</ThemeContext.Consumer>
);

Loading…
Cancel
Save