Skip to content

Commit

Permalink
fix <component> init error
Browse files Browse the repository at this point in the history
  • Loading branch information
xlshen committed Nov 23, 2017
1 parent f8b12cd commit ddd2625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/flex/flex_item.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import PropTypes from 'prop-types';
*
*/
const FlexItem = (props) => {
const { component, children, ...others } = props;
const { component: Component, children, ...others } = props;
return (
<component className="weui-flex__item" {...others}>
<Component className="weui-flex__item" {...others}>
{ children }
</component>
</Component>
);
};

Expand Down

0 comments on commit ddd2625

Please sign in to comment.