I need to pass
match.params.order_type
as a prop to a component. The child is required to use the prop as such:
this.props.match.params.order_type
Parent component:
MyOrders.jsx
<Orders match.params.order_type={"buyordersdata"}/>
Child Component
Orders.jsx
<OrderTable order_type={this.props.match.params.order_type} orders={this.state.orders}/>