Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a possibility to polyfill react 15? #30

Open
dzcpy opened this issue May 27, 2016 · 5 comments
Open

Is there a possibility to polyfill react 15? #30

dzcpy opened this issue May 27, 2016 · 5 comments

Comments

@dzcpy
Copy link
Contributor

dzcpy commented May 27, 2016

(We won't actively remove IE 8–related code quite yet, but we will deprioritize new bugs that are reported. If you need to support IE 8 we recommend you stay on React v0.14.)

Officially it's said that IE8 is not supported but they will also not remove IE 8 related compatibility code. So there might be a chance that it still works with polyfills?

@dzcpy dzcpy changed the title Is there a possibility to actually polyfill react 15? Is there a possibility to polyfill react 15? May 27, 2016
@dzcpy
Copy link
Contributor Author

dzcpy commented May 27, 2016

If not, I'm thinking another solution which is by using IE's conditional comment. So if it's IE 8 then use a different webpack build. Any suggestions?

@xcatliu
Copy link
Owner

xcatliu commented Jun 2, 2016

First thanks for you advice!

In my opinion, React@latest might still work fine in IE8 with some polyfills. But It's hard to find and fix every IE8 issues in the future, especially without the official help.

Why not just use React@0.14 if you want to support IE8?

@xcatliu
Copy link
Owner

xcatliu commented Jun 2, 2016

BTW, we have docs for React@0.14:
http://react-ie8.xcatliu.com/react/

@dzcpy
Copy link
Contributor Author

dzcpy commented Jun 3, 2016

Thanks for the reply!
Main reason: I don't like those data-reactid stuff attached in every DOM object. I'm also interestd with preact and react-light, not sure whether these libraries can be used with IE8. Both of them have very small code base (3kb for preact) so it's probably easier to do the polifill.

@LouisStAmour
Copy link

LouisStAmour commented Aug 5, 2016

I'm similarly interested in moving to React 15 now, despite requirements to support IE 8, as Jest 14's new React Test Renderer requires and ships with 15.3.0, and lets you write snapshot tests: https://facebook.github.io/jest/blog/2016/07/27/jest-14.html

I've tried getting previous React Test Renderers to work in Jest and it's a radically different syntax, the support's just not there. It occurs to me that it might be possible to backport react-test-renderer to work with 0.14, but that should be weighed against running 15.3.0 and attempting for IE8 support anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants