Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Router Tutorial , Nested Routes  #260

Closed
@daslicht

Description

@daslicht

reference : https://github.com/reactjs/react-router-tutorial/tree/master/lessons/04-nested-routes
Hi,
I have the following structure :

index.jsx
     Main
         Details

index.jsx:

    <Router history={hashHistory}>
        <Route path="/" component={Main}>
            <Route path="/details" component={Details}/>
        </Route>
    </Router>,

main.jsx:

render() {
    return (  
      <div>
        <ul>
          <li><Link activeStyle={{ color: 'red' }} to="/">Main</Link></li>
          <li><Link activeStyle={{ color: 'red' }} to="/details">Details</Link></li>
        </ul>

        {this.props.children}
        
      </div>
    );
  }

How to add content now for Main (path "/") please?
Do I need to push it into the properties ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions