1const [items, set] = useState([...])
2const transitions = useTransition(items, item => item.key, {
3from: { transform: 'translate3d(0,-40px,0)' },
4enter: { transform: 'translate3d(0,0px,0)' },
5leave: { transform: 'translate3d(0,-40px,0)' },
6})
7return transitions.map(({ item, props, key }) =>
8<animated.div key={key} style={props}>{item.text}</animated.div>
9)