Dan Shappir
1 min readMar 19, 2017

--

The biggest problem with setState is simply that it has a wrong, misleading name. It should have been called something like asyncShallowMergeState (yes, I know it’s a mouthful ;-) Oh, and it should have returned a Promise.

--

--

Dan Shappir

I’m a Performance Specialist at Wix.com. My job is to make 80 million websites hosted on the Wix platform load and execute faster. Opinions are my own