react-dnd / react-dnd

Drag and Drop for React

Home Page:http://react-dnd.github.io/react-dnd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The docs for useDrag say that collect takes two parameters, but it only takes one

HenrikBechmann opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.
collect in useDrag only get the monitor parameter, not props (two parameters causes an error). Please correct the docs, or tell me what I'm missing.
Reproduction

Live Reproduction

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.