// Theirs import React from 'react' import { Provider } from 'unstated' import HTML5Backend from 'react-dnd-html5-backend' import { DragDropContext } from 'react-dnd' // Ours import EditorContainer from '../containers/Editor' import Editor from './Editor' import Toolbar from './Toolbar' import { COLORS } from '../lib/constants' class Carbon extends React.Component { constructor(props) { super(props) this.inject = [new EditorContainer(props)] } render() { return (
) } } export default DragDropContext(HTML5Backend)(Carbon)