React Base Fiddle (JSX)

Starting point for creating JSFiddles with React. This uses React with Addons.

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.js"></script>
<script src="https://npmcdn.com/react@latest/dist/react-with-addons.js"></script>
<script src="https://npmcdn.com/react-dom@latest/dist/react-dom.js"></script>
<script src="https://facebook.github.io/react/js/jsfiddle-integration-babel.js"></script>
<script src="https://npmcdn.com/react-sortable-hoc/dist/umd/react-sortable-hoc.min.js"></script>

<div id="root">
  <!-- This element's contents will be replaced with your component. -->
</div>

JavaScript 1.7

// Code goes here
var {SortableContainer, SortableElement, arrayMove} = window.SortableHOC;

const PlaylistPage = SortableElement(({page}) => {  
  return (
    <div style={{zIndex: 99999999}} >{page}</div>
  );
});

const PlaylistPages = SortableContainer(({pages}) => {  
  return (
    <div>
      {
        pages.map((page, index) =>
          <PlaylistPage key={index} page={page} style={{zIndex: 99999999}} />
      )}
    </div>
  );
});

class SortableComponent extends React.Component {
		constructor(props) {
        super(props);
        this.state = {
            test: [
		        '1','2', '3', '4'
    			  ]
        }
    }
    
    render() {
      return (
        <PlaylistPages pages={this.state.test} style={{zIndex: 999999}} />
      );
    }
}

ReactDOM.render(<SortableComponent/>, document.getElementById('root'));