reactjs - React-Router: Failed prop type: Invalid prop `component` supplied to `Route` in route -


i have no idea issue here , have tried many other solutions none work. appreciated fix error. thank you

"react-router": "^2.8.1"

dashboard.js (excerpt)

<div classname="dash-container">   {this.props.list}   {this.props.job}   {this.props.children} </div> 

routes.js (excerpt)

<route path="/" component={app}>   <indexroute component={landing} />   <route path="dashboard" component={dashboard}>     <route path="jobs" component={{ list: listcontainer }} />     <route path="jobs/:id" component={{ list: listcontainer, job: jobsdetails }} />     <route path="accounts" component={accountsdetails} />   </route> </route> 

server.js (excerpt)

<muithemeprovider muitheme={getmuitheme({ useragent: 'all' })}>   <provider store={createstorewithmiddleware(reducers)}>     <routercontext {...renderprops} />   </provider> </muithemeprovider> 

one component, multiple components:

<route path="/" component={app}>   <indexroute component={landing} />   <route path="dashboard" component={dashboard}>     <route path="jobs" component={listcontainer} />     <route path="jobs/:id" components={{ list: listcontainer, job: jobsdetails }} />     <route path="accounts" component={accountsdetails} />   </route> </route> 

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -