Skip to content

Not able to use initialized State from a function. #303

Answered by clauderic
kkroeger93 asked this question in Q&A
Discussion options

You must be logged in to vote

They're both equivalent. The only difference is that in one of them you have an id that is 0 whereas the other ones start at 1.

You can't safely use numbers for the id that you pass to @dnd-kit, they have to be strings. Refer to #286 (comment)

https://codesandbox.io/s/festive-sara-nwh5c?file=/src/App.js

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kkroeger93
Comment options

Answer selected by kkroeger93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants