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

Suggestion: Mention changes needed for tutorial to work in [current year] #851

Open
avelican opened this issue Oct 14, 2024 · 0 comments
Open

Comments

@avelican
Copy link

avelican commented Oct 14, 2024

The tutorial is a bit out of date, and there's a few small changes that need to be made for it to work.

One is that innerRef is changed to ref.

Another is that props passed to styled-components (e.g. isDragging) must be prefixed with dollar sign ($isDragging), otherwise they'll be passed to React, which doesn't like DOM elements having props and will give an error.

(This has to do with styled-components, rather than dnd, though I ran into it while following the tutorial for dnd, which uses styled-components, so it's worth mentioning too.)

I suggest creating such a page in the docs with the latest errata for this tutorial and linking to it above/below the link to the tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant