3 ms·
Like most people who use ES5, your code is broken in IE11 and you had no idea. :-) You use Object.assign(state, next) which does not work in IE11. Using ES5 is
by earthboundkid 6y ago
Like most people who use ES5, your code is broken in IE11 and you had no idea. :-) You use Object.assign(state, next) which does not work in IE11.
Using ES5 is pretty much always a mistake in 2020.
- datagram 6y agoObject.assign is polyfilled: https://github.com/morris/vanilla-todo/blob/9a27e850e15fddfe0e9504660f516d51d31e5284/public/index.html#L29 https://github.com/morris/vanilla-todo/blob/9a27e850e15fddfe... That being said, the page still didn't load properly for me when I actually tried it in IE11, but it's not because of Object.assign. Nobody writes ES5 because they want to; many developers are still forced to support Internet Explorer for one reason or another.