react-router icon indicating copy to clipboard operation
react-router copied to clipboard

Component loading but not showing in page.

Open anujsinghwd opened this issue 7 years ago • 1 comments

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;

anujsinghwd avatar Dec 14 '18 06:12 anujsinghwd

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!

timdorr avatar Dec 14 '18 15:12 timdorr