Convert to Hooks
Changes:
- Converted the logic to hooks.
Packages:
- Added
eslint+prettier(for code formatting); - Updated
reactandreact-dom; - Removed
stylus(was throwing an error in the current version) andredux;
The packages were changed because of personal preferences so it can be discussed, for sure :)
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 :)
Nice! I think that it's not 100% clean yet, but that's also just an example.
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