0

I have the following route config. dynamicPost: { path: '/posts/:postId', method: 'get', page: 'Post', title: 'Post', handler: SinglePost } How do i get post id in my Component ?

Sourav Mukherjee
  • 299
  • 7
  • 13

1 Answers1

0

Use this:

props.currentRoute.params.postId
Robert Columbia
  • 6,313
  • 15
  • 32
  • 40
Sourav Mukherjee
  • 299
  • 7
  • 13