Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions presets/sortable/usesortable.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ Keep in mind that the `ref` should be assigned to the outer container that you w

```jsx
function SortableItem(props) {
const {arguments, listeners, setNodeRef} = useDraggable({
const {attributes, listeners, setNodeRef} = useDraggable({
id: props.id,
});

return (
<li ref={setNodeRef}>
{/* ... */}
<button {...listeners} {...arguments}>Drag handle</button>
<button {...listeners} {...attributes}>Drag handle</button>
</li>
);
}
Expand Down