How do I get passed parameter id through fluxible router in my component?

55 views Asked by At

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 ?

1

There are 1 answers

0
Sourav Mukherjee On

Use this:

props.currentRoute.params.postId