mohsen saremi
mohsen saremi

Reputation: 715

Difference between using withStateHandler and withState + withHandler

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?

Upvotes: 0

Views: 94

Answers (1)

Luan Bitar
Luan Bitar

Reputation: 139

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

Upvotes: 0

Related Questions