Using SVG files including style tags causes syntax errors on IE 11 (and older)
Possible solution
It seems that the lib/StyleComponent.js file is written using recent syntax (object method shorthand), and is not transpiled properly before being used. I believe that either updating the lib/StyleComponent.js file, or transpiling it should fix the issue.
Description
Using SVG files including
style
tags causes syntax errors on IE 11 (and older)Possible solution
It seems that the
lib/StyleComponent.js
file is written using recent syntax (object method shorthand), and is not transpiled properly before being used. I believe that either updating thelib/StyleComponent.js
file, or transpiling it should fix the issue.Steps to reproduce
Clone the reproduction respository, and follow the steps below using IE 11.
http://localhost:3000/working
, and play with the counter button. Each click does increment the counter.http://localhost:3000/buggy
, and play with the counter. Nothing happens.lib/StyleComponent.js
file.