Generic type arguments in JSX elements with withStyles

后端 未结 4 1798
别跟我提以往
别跟我提以往 2021-01-13 12:05

In React with material-ui I am trying to create a JSX component that accepts generic parameters and also uses the withStyles HOC to inject my styles.

Th

4条回答
  •  广开言路
    2021-01-13 12:50

    There needs to be an overload of withStyles typings for every possible number of type parameters

提交回复
热议问题