react-router
react-router copied to clipboard
Component loading but not showing in page.
Here Is my code ?
ReactDOM.render(<Router history={browserHistory}>
<Route path="/" component={App}> </Route>
<Route path="/about" component={Abouthome}> </Route>
<Route path="/contact" component={Contact}> </Route>
<Route path="/products" component={Product}> </Route>
</Router>, document.getElementById('root'));
In the home component [{App}] Landing component is loading initially but not loading after changing the route.
Here is My App.js Code
class App extends Component {
render() {
return (
<div>
<Header />
<Landing />
<About />
<Footer />
</div>
);
}
}
export default App;
This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!