0

I'm looking through the examples and I see this Router configured.

  <Router>
  ....
    <Route path="/topics" component={Topics}/>
    </div>
  </Router>

const Topics = ({ match }) => (
  <div>
    <h2>Topics</h2>
    <ul>
    ....

Why is it that Topics has "{ match }" for the function parameter? Why doesn't it use "props" and then in the function definition props.match?

user994165
  • 9,146
  • 30
  • 98
  • 165

0 Answers0