get param é react
const pathArray = window.location.pathname.split('/');
const id = pathArray[2];
ama-lion
const pathArray = window.location.pathname.split('/');
const id = pathArray[2];
const Child = ({ match }) => (
<div>
<h3>ID: {match.params.id}</h3>
</div>
)