Skip to content

Commit

Permalink
Merge pull request #120 from austinsheep/master
Browse files Browse the repository at this point in the history
IE11 Compatibility
  • Loading branch information
hmsk committed Mar 9, 2020
2 parents 3e018d1 + 05a9d79 commit 29bc3b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -156,7 +156,9 @@ module.exports = function (source) {

const reactComponent = `
function (props) {
Object.entries(props).forEach(([key, value]) => {
Object.entries(props).forEach(function (prop) {
const key = prop[0]
const value = prop[1]
this[key] = value;
});
${compiled.code}
Expand Down

0 comments on commit 29bc3b6

Please sign in to comment.