Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in sortable-context.md #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
10 changes: 5 additions & 5 deletions presets/sortable/sortable-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ You may also nest `SortableContext` providers within other `SortableContext` pro

// Good, nested DndContexts
<DndContext>
<SortableContext items={["A, "B", "C"]}>
<SortableContext items={["A", "B", "C"]}>
<DndContext>
<SortableContext items={["A, "B", "C"]}>
<SortableContext items={["A", "B", "C"]}>
{/* ... */}
</SortableContext>
</DndContext>
Expand All @@ -93,16 +93,16 @@ You may also nest `SortableContext` providers within other `SortableContext` pro

// Bad, nested Sortable contexts with `id` collisions
<DndContext>
<SortableContext items={["A, "B", "C"]}>
<SortableContext items={["A, "B", "C"]}>
<SortableContext items={["A", "B", "C"]}>
<SortableContext items={["A", "B", "C"]}>
{/* ... */}
</SortableContext>
</SortableContext>
</DndContext>

// Good, nested Sortable contexts with unique `id`s
<DndContext>
<SortableContext items={["A, "B", "C"]}>
<SortableContext items={["A", "B", "C"]}>
<SortableContext items={[1, 2, 3]}>
{/* ... */}
</SortableContext>
Expand Down