3 ms·
> If you're re-rendering a div in different places using Om/React in order to animate it, I would say you're probably doing it wrong. You should do one re-rende
by baddox 12y ago
> If you're re-rendering a div in different places using Om/React in order to animate it, I would say you're probably doing it wrong. You should do one re-render to apply a new CSS transition class.
Unless, of course, that doesn't make sense, like if you're implementing drag and drop.
- davedx 12y agoI wouldn't use React to render a dragged UI component, I would animate it in the DOM myself then send an action back to the store when it was dropped that triggered a re-render. Why would the application need to know where the UI component was before it was dropped?