This commit is contained in:
Toru Kobayashi
2018-03-30 15:25:16 +09:00
parent d5c449d824
commit c72935a054

View File

@@ -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>
);