20
app/components/App/AppClient.js
Executable file
20
app/components/App/AppClient.js
Executable file
@@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
import { hot } from 'react-hot-loader'
|
||||
import { BrowserRouter as Router } from 'react-router-dom';
|
||||
|
||||
import AppLayout from './../../layout/default';
|
||||
import { RoutedContent } from './../../routes';
|
||||
|
||||
const basePath = process.env.BASE_PATH || '/';
|
||||
|
||||
const AppClient = () => {
|
||||
return (
|
||||
<Router basename={ basePath }>
|
||||
<AppLayout>
|
||||
<RoutedContent />
|
||||
</AppLayout>
|
||||
</Router>
|
||||
);
|
||||
}
|
||||
|
||||
export default hot(module)(AppClient);
|
3
app/components/App/index.js
Executable file
3
app/components/App/index.js
Executable file
@@ -0,0 +1,3 @@
|
||||
import AppClient from './AppClient';
|
||||
|
||||
export default AppClient;
|
Reference in New Issue
Block a user