是否会从切换组件的上下文中捕获道具?
任务是将道具转移到附近的组件。还是有必要带父母上路而没有路线?
<Context.Provider value="">
<Switch>
<Route exact render={() => <Main/>} path={'/'}/>
<Route exact render={() => <CreateUserModule/>} path={'/users'}/>
<Route exact render={() => <Admin/>} path={'/admin'}/>
<Route exact render={() => <Start/>} path={'/start'}/>
<Route exact render={() => <Statistic/>} path={'/statistic'}/>
<Route exact render={() => <Priz/>} path={'/bd'}/>
<Route exact render={() => <Lottery timer={timer}/>} path={'/lottery'}/>
</Switch>
</Context.Provider>