<MyComp1/>} />
                  
                  
                  <Route exact={true} path="/path2" render={() => <MyComp2/>} />
                  
                  
                  <Route exact={true} path="/path3" render={() => <MyComp3/>} />
                  
                  
                  
                  
                  
                  Обернуть примерно в такое?
                  
                  
                  
                  
                  
                  {routingList.map((route) => {
                  
                  
                   return (<Route exact={route.exact} path={route.path} render={() => route.component} />)
                  
                  
                  })}
                  
                  
                  
                  
                  
                  Щас падает с ошибкой:
                  
                  
                  Error: Objects are not valid as a React child (found: object with keys {$$typeof, type, compare, WrappedComponent, displayName}). If you meant to render a collection of children, use an array instead.
                  
                  
                
можно, ты не то рендеришь
Обсуждают сегодня