Is there any way to pass id in Router without mentioning in URL.
Like in following route, Its URL will have a id abc.com/abc/1
<Route exact path="/abc/:vid" component={AbcComponent} />
I want URL to be abc.com/abc and id should be available in AbcComponent. I tried following but I do not have ids in App.js to pass.
<Route exact path="/SpRides"
render={(props) => <SpRides vid={vid} spId={spId} depId={depId} {...props} />} />