Difference between using withStateHandler and withState + withHandler

76 Views Asked by At

Does withStateHandler has some benefit over using withState and withHandler together?

Why should I use withStateHandler at all when I can get same functionality with withState and withHandler?

1

There are 1 best solutions below

0
Luan Bitar On

withStateHandler has little benefits like less code and fewer function imports, but that won't do a lot of performance increment, practically they do the same thing in the same way if you do not worry about the size of your code splitting or something like this