I have React Router that looks like this:
<Switch>
<Route exact path="/" render={() => <DashboardView {...dashboardViewProps} />} />
<Route path="/blocks" render={() => <BlocksView {...blocksViewProps} />} />
<Route path="/chaincodes" render={() => <ChaincodeView {...chaincodeViewProps} />} />
<Route path="/channels" render={() => <ChannelsView {...channelsViewProps} />} />
<Route path="/network" render={() => <NetworkView {...networkViewProps} />} />
</Switch>
I want to add new route like this:
<Route path="/transactions/:txId" render={() => <TransactionsView {...transactionsViewProps} />} />
How could I pass the txId to the TransactionView constructor which now looks like this:
constructor(props) {
super(props);
}
Thank you