vcvcvcvcv

2020-06-06  本文已影响0人  力_7e21

#### 阿瑟费极大释放

hhhhhkkl个黄金矿工开花结果


afasdfa

```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

    }

]

```

上一篇 下一篇

猜你喜欢

热点阅读