import React, { Component } from 'react'; import { Link, Switch } from 'react-router-dom'; import { hot } from 'react-hot-loader/root' import { ARTICLE_LIST, ARTICLE_DETAIL } from '@store/constant'; import Header from '@component/header' import Route from '@component/route'; import Home from '../home'; import Detail from '../detail'; import Async from '../async'; import About from '../about'; import './index.css'; interface PropType { url: string; } class Main extends Component { tabClick = (e) => { console.log('click', e.target); } render() { return
; } } export default EASY_ENV_IS_DEV ? hot(Main) : Main;