Substitua o roteador atual URI React

window.location.replace(`http://localhost:3000/${dynamic_value}`);
Hakim Katende