Examples › Using bodyRef with AutoAnimate
The DataTable
component exposes a bodyRef
property that can be used to pass a ref to the underlying table tbody
element. This ref can be passed to the useAutoAnimate()
hook from the excellent AutoAnimate library to animate table rows when they are added, removed or reordered.
No records
Here is the code:
Head over to the next example to learn more.