import PureRenderMixin from 'react-addons-pure-render-mixin'; import { Motion, spring } from 'react-motion'; import { FormattedMessage } from 'react-intl'; const UploadProgress = React.createClass({ propTypes: { active: React.PropTypes.bool, progress: React.PropTypes.number }, mixins: [PureRenderMixin], render () { const { active, progress } = this.props; if (!active) { return null; } return (
{({ width }) =>
}
); } }); export default UploadProgress;