4 ms·
You can write HoC with working typings [1]. As far as I know the compose function is harder to type because of the varargs it uses (although I heard recent TS v
by renke1 8y ago
You can write HoC with working typings [1]. As far as I know the compose function is harder to type because of the varargs it uses (although I heard recent TS versions can actually handle that).
[1]: https://medium.com/@jrwebdev/react-higher-order-component-patterns-in-typescript-42278f7590fb https://medium.com/@jrwebdev/react-higher-order-component-pa...