Skip to content

Commit

Permalink
Use spread over Object.assign (#193)
Browse files Browse the repository at this point in the history
* Use rest spread over Object.assign

* Update index.js
  • Loading branch information
bogas04 authored and Kye Hohenberger committed Jul 27, 2017
1 parent 72abd4d commit 18f91da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ export default function (tag, objs, vars = [], content) {
return h(
tag,
omit(
Object.assign({}, mergedProps, {
{
...mergedProps,
ref: mergedProps.innerRef,
className
}),
},
['innerRef', 'theme']
)
)
Expand Down

0 comments on commit 18f91da

Please sign in to comment.