reach / router

Home Page:https://reach.tech/router

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A usage problem

opened this issue · comments

I want to match 404 when routing /articleCategory123123asdf. /articleCategory matches BasicLayout

    <Router>
      <LoginLayout path="/login" />
      <Redirect from="/" to="/articleCategory" />
      <BasicLayout path="/">
        <ArticleCategory path="articleCategory" />
        <Article path="article" />
      </BasicLayout>
      <EditLayout path="/editArticle" />
      <NotFoundLayout default />
    </Router>