import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import DevTools from './components/DevTools'; import { setPreviousPath } from '../IDE/actions/ide'; const __process = (typeof global !== 'undefined' ? global : window).process; class App extends React.Component { constructor(props, context) { super(props, context); this.state = { isMounted: false }; } componentDidMount() { this.setState({ isMounted: true }); // eslint-disable-line react/no-did-mount-set-state document.body.className = 'light'; } componentWillReceiveProps(nextProps) { if (nextProps.location !== this.props.location) { this.props.setPreviousPath(this.props.location.pathname); } } render() { return (