preactjs / preact

⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.

Home Page:https://preactjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`createRoot` uses an unsupported syntax for IE11

toml-pcentra opened this issue · comments

  • [ X ] Check if updating to the latest Preact version resolves the issue

Describe the bug
The createRoot uses the "method definition" syntax which is not supported in IE11:

preact/compat/client.js

Lines 3 to 12 in d18ac9f

function createRoot(container) {
return {
render(children) {
render(children, container);
},
unmount() {
unmountComponentAtNode(container);
}
};
}