About the withTheme function in materialUI?

when I check the official DEMO of material-UI, I see a function description about the theme, which is not very clear. The function he defines is as follows:

withTheme()(Component) => Component
theme



Component:


Component:



import { withTheme } from "material-ui/styles"

export default withTheme()(MyComponent);

what is the use of the first parenthesis after withTheme? His final definition of the arrow function will return a component, why the example is directly withTheme () (MyComponent) and omitted the arrow function part? Is there a return component written in this way?

Mar.02,2021

has resolved the problem. 1.withTheme () () is actually a nested function that generates a function using withTheme () for the first time and a MyComponent component using withTheme () (MyComponent) again.
2.withTheme () (MyComponent) is just a definition, and the arrow after it indicates that the resulting return value is a component component, not an arrow function.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9c1d9-465f2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9c1d9-465f2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?