react-auto-height-transition
基于react的可自动过渡高度的transition组件
使用方法:
import TransitionWhenToggle TransitionWhenHeightChange from 'react-auto-height-transition' <TransitionWhenToggle = => thisstateshow && <div> placeholder<br/> placeholder<br/> placeholder<br/> placeholder<br/> </div> </TransitionWhenToggle> <TransitionWhenHeightChange = = => <div> placeholder<br/> placeholder<br/> placeholder<br/> placeholder<br/> </div></TransitionWhenHeightChange>