/** * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { Switch, Route } from 'react-router-dom'; import { bindActionCreators, compose } from 'redux'; // Utils import pluginId from 'pluginId'; // Containers import HomePage from 'containers/HomePage'; import NotFoundPage from 'containers/NotFoundPage'; // When you're done studying the ExamplePage container, remove the following line and delete the ExamplePage container import ExamplePage from 'containers/ExamplePage'; import reducer from './reducer'; class App extends React.Component { // When you're done studying the ExamplePage container, remove the following lines and delete the ExamplePage container componentDidMount() { this.props.history.push(`/plugins/${pluginId}/example`); } render() { return (