Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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();
  
 
PREVIOUS NEXT
Tagged: #react #js #router #parameters
ADD COMMENT
Topic
Name
9+8 =