router.js
408 Bytes
import Loadable from "react-loadable";
import React from 'react';
const home = Loadable({
loader: () => import(/* webpackChunkName: "home" */'./view/home'),
loading(){
return <div></div>
},
});
const prize = Loadable({
loader: () => import(/* webpackChunkName: "prize" */'./view/prize'),
loading(){
return <div></div>
},
});
export default {
home,
prize
};