I'm trying to create a DragDropContext
but failing.
var root = <CommentBox url="/metis/api/shifts" pollInterval={2000} />;
var AppDnD = ReactDnD.DragDropContext(ReactDnDMultiBackend.default(RDMBHTML5toTouch.default))(root);
ReactDOM.render(AppDnD, document.getElementById('content'));
This gives...
ReactDOM.render(): Invalid component element. Instead of passing a class like Foo, pass React.createElement(Foo) or .
... in the console.
I thought that decorating a React object results in a new React object. So why doesn't the render method accept this object?