0.1.1 • Published 2 years ago
transition-list v0.1.1
Animated list for React
The library animates the deletion, addition and movement of items in a vertical list.
How to install:
npm install transition-list
How to use:
import React from 'react';
import { TransitionList } from 'transition-list';
export const ToDoList = ({ list }) => {
return (
<TransitionList>
{list.map(l => (
<div key={l.id}> // The key is a required parameter
{l.title}
</div>
))}
</TransitionList>
)
}