Skip to content

react-dom development bundle uses Array.from #12540

@wKovacs64

Description

@wKovacs64

Do you want to request a feature or report a bug?

Bug (?)

What is the current behavior?

Currently, the 16.3.x versions of react-dom ship react-dom.development.js containing usage of Array.from which is not available in certain React-supported browsers like IE11. It causes breakage if those particular code paths are taken in such a browser (I ran into it using <StrictMode> in IE11).

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

Reproduction (should see "Hello, world!" but IE11 will crash and show nothing):
https://codepen.io/anon/pen/zWJBrO?editors=0010

What is the expected behavior?

react-dom.development.js would not use Array.from or document that a polyfill is required.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

react and react-dom: 16.3.0-alpha.0 through 16.3.1
Internet Explorer 11

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions