2

In IE, React.js javascript is not working in thin client but its working in localhost. why?

I am working on React.Js JavaScript code. In other browsers its working fine. But in IE browser, Its not working. But when we open developer tools, then its getting updated.

I tried to update values in IE. It didn't work. But after opening developer tools, It's getting updated.

Please help me out.

SJK
  • 21
  • 4

1 Answers1

0

This commonly happens because console isn't available in older versions of IE unless the dev tools are open - the development build of React has lots of console logging with helpful warnings and errors.

You can use something like https://github.com/paulmillr/console-polyfill to make sure your apps won't die when console logging is present.

See also answers to 'console' is undefined error for Internet Explorer.

Community
  • 1
  • 1
Jonny Buchanan
  • 58,371
  • 16
  • 137
  • 146