React-beautiful-dnd: Create function component guide

Created on 7 Jan 2019  路  6Comments  路  Source: atlassian/react-beautiful-dnd

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.

docs 馃摉

Most helpful comment

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

All 6 comments

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

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

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

I think I will also add a story example

1167

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

Was this page helpful?
0 / 5 - 0 ratings