i using react-router routing in reactjs web app. want set of different routes render same component.
for example:
http://example.com/abc http://example.com/xyz http://example.com/pqr
these uris render same component
note: dont want routes render same component. want abc , xyz , pqr render same component
just define them,
<router history={browserhistory}> <route path="/" component={app}> <route path="abc" component={yourcomponent}/> <route path="xyz" component={yourcomponent}/> <route path="pqr" component={yourcomponent}/> <route path="*" component={nomatch}/> </route> </router>
Comments
Post a Comment