Answers for "react js router parameters"

1

react js router parameters

// Declaramos la ruta
<Route path="/thanks/:status" component={ThanksPage} />
// Obtenemos la variable
import { useParams } from "react-router-dom";

const { status } = useParams();
Posted by: Guest on February-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language