qr_id route php getDog
This commit is contained in:
13
src/components/Dog.tsx
Normal file
13
src/components/Dog.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import React from 'react'
|
||||
import { useParams } from "react-router-dom";
|
||||
|
||||
export default function Dog()
|
||||
{
|
||||
const params = useParams();
|
||||
return (
|
||||
<div>
|
||||
<h1>Dog</h1>
|
||||
<p>{Object.keys(params)[0]}: {Object.values(params)[0]}</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user