-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Thanks for this nested set up with React DnD! I got your example running on localhost and have also got it working inside my application code.
I do have one question though. I was using the ES5 way of creating a react class...namely:
var Component = React.createClass({
…
});
And noticed that it just wouldn't work. The browser was giving me a ton of errors. It seems as though I need to cut to ES6/7 techniques cold-turkey in order for this to work. Is there a simple answer to why? I am just starting to convert my code to ES6 starting this week so I'm not too familiar.
My guess is it has something to do with the class declaration and inheritance. Or just simply being able to call the same Tree component inside of a child component and having it actually be "NEW".
Metadata
Metadata
Assignees
Labels
No labels