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

Create function component guide #1043

Closed
EdmundsEcho opened this issue Jan 7, 2019 · 6 comments
Closed

Create function component guide #1043

EdmundsEcho opened this issue Jan 7, 2019 · 6 comments

Comments

@EdmundsEcho
Copy link

I'm hoping to get some guidance on how to generate the required innerRef prop using a functional component with the hook useRef. Thank you in advance.

@alexreardon
Copy link
Collaborator

It would be worth putting together a guide on how to use react-beautiful-dnd using function components + hooks

@alexreardon alexreardon changed the title Generating an innerRef for a functional component with useRef Create function component guide Mar 12, 2019
@alexreardon
Copy link
Collaborator

This would not be needed if we just moved to hooks #871

@alexreardon
Copy link
Collaborator

Here is an example I put together: https://codesandbox.io/s/zqwz5n5p9x

@alexreardon
Copy link
Collaborator

I think I will also add a story example

@alexreardon
Copy link
Collaborator

#1167

@ChangoMan
Copy link

Thank you! I was looking for this exact example, works great!

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

No branches or pull requests

3 participants