Skip to content

Commit

Permalink
Changed arrow function to make IE11 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
aubaugh committed Mar 3, 2020
1 parent 3c75425 commit 05a9d79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
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 05a9d79

Please sign in to comment.