Skip to content

Commit

Permalink
perf: improve styled() addon
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 13, 2018
1 parent a68d1d7 commit 859a01f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions addon/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

exports.addonStyled = function (renderer) {
renderer.styled = function (fn, styles, dynamicTemplate, block) {
var isElement = typeof fn === 'string';
var jsxComponent = renderer.jsx(fn, styles, block);

if (!block && !isElement)
block = fn.displayName || fn.name;

var Component = function(props) {
var copy = props;

Expand Down

0 comments on commit 859a01f

Please sign in to comment.