example-react-dnd-nested icon indicating copy to clipboard operation
example-react-dnd-nested copied to clipboard

Convert to Hooks

Open max-sym opened this issue 5 years ago • 3 comments

Changes:

  • Converted the logic to hooks.

Packages:

  • Added eslint + prettier (for code formatting);
  • Updated react and react-dom;
  • Removed stylus (was throwing an error in the current version) and redux;

The packages were changed because of personal preferences so it can be discussed, for sure :)

max-sym avatar May 07 '20 10:05 max-sym

this is great! I'm glad you simplified the dependencies as it makes the example easier to understand. I think at the time I had just copied over some boilerplate App code that I was using.

I'm going to pull this down and give the code a look over. I think it's definitely worth merging this in and doing away with the old stuff :)

tamagokun avatar May 07 '20 12:05 tamagokun

Nice! I think that it's not 100% clean yet, but that's also just an example.

max-sym avatar May 07 '20 12:05 max-sym

This seems to be older, but I do wanna say that this worked great when I was trying to build the nested list for react-dnd. This is my code: --> https://codesandbox.io/s/react-dnd-nested-list-example-fehzw

wiktoriavh avatar Apr 30 '21 09:04 wiktoriavh