#### 阿瑟费极大释放
hhhhhkkl个黄金矿工开花结果
```jsx
import React from 'react';
import AsyncLoader from './asyncLoader';
function pageNotFound({staticContext}) {
if (staticContext) {
staticContext.code =404;
}
return <div>404页面
}
export default [
{
path:'/a',
component:AsyncLoader(() =>import('../pages/pageA')),
exact:true
},
{
path:'/b',
component:AsyncLoader(() =>import('../pages/pageB')),
exact:true
},
{
path:'*',
component:pageNotFound,
exact:true
}
]
```
网友评论