react-component / tween-one

Animate One React Element
https://tween-one.vercel.app/
MIT License
380 stars 30 forks source link

React does not recognize the `resetStyle` prop on a DOM element #40

Closed afc163 closed 6 years ago

afc163 commented 6 years ago
Warning: React does not recognize the `resetStyle` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `resetstylebool` instead. If you accidentally passed it from a parent component, remove it from the DOM element.

rc-tween-one@2.2.5

            <TweenOneGroup
              className="design-point-wrapper"
              enter={this.getEnter}
              leave={{ x: 0, y: 30, opacity: 0, duration: 300, ease: 'easeInBack' }}
              resetStyle={false}
            >
              {(this.props.isMobile || isHover) && pointChild}
            </TweenOneGroup>
jljsj33 commented 6 years ago

哪来的代码??? TweenOneGroup 没有 resetStyle

jljsj33 commented 6 years ago

TweenOneGroup 是 exclusive

afc163 commented 6 years ago

那估计是之前的同学写错了,我删掉。