Files
wewechat-plus-plus/src/js/routes.js
Riceneeder 58ce6cb67b wewechat++ init
仓库提交至星火社区作品集

Signed-off-by: Riceneeder <86492950+Riceneeder@users.noreply.github.com>
2022-09-01 20:38:13 +08:00

22 lines
577 B
JavaScript

import React from 'react';
import { withRouter, Route, Switch } from 'react-router-dom';
import { Layout, Settings, Contacts, Home } from './pages';
const Main = withRouter(props => <Layout {...props} />);
export default () => {
/* eslint-disable */
return (
<Main>
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/contacts" component={Contacts} />
<Route exact path="/settings" component={Settings} />
</Switch>
</Main>
);
/* eslint-enable */
};