mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 04:12:34 +00:00
prettier
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user