Figuring out IE related issue for react

I get the following error when I run the following simple React based hello world in IE 11

Internet Explorer 11: Object doesn't support property or method 'forEach'

Here people are recommending to use pollyfill but if I want to fix it without using anything else, is it possible to make some changes in the fiddle?

Hi,

The fiddle runs just fine for me in IE 11, and IE supports forEach as of version 9, as you can read on the MDN support page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach#Browser_compatibility

Seems that the problem lies elsewhere.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.