text: import React, { Component } from 'react';
  import { Route } from 'react-router-dom';
  import {
      CategoriesView,
      CreateView,
      MainContent,
      PostView
  } from './components/index';
  import './App.css';
  
  class App extends Component {
  
    render() {
      return (
        <div className="App">
            <Route
                exact
                path="/"
                render={() => (
                    <MainContent/>
                )}
            />
            <Route
                path="/managePost"
                render={() => (
                    <CreateView/>
                )}
            />
            <Route
                exact
                path="/categories"
                render={() => (
                    <CategoriesView/>
                )}
            />
            <Route
                exact
                path="/post"
                render={() => (
                    <PostView/>
                )}
            />
        </div>
      );
    }
  }
  
  export default App;
  