#BrianHHough
1 messages · Page 1 of 1 (latest)
You'd need to have something read from the query parameter. There are packages for this, but you could also build it yourself, eg with a useEffect hook and inspecting window.location
Ahhh that's what that's called - ok thanks so much! Going to look into this
NP!
and what's it called when there is a ?characters...
if you use react-router eg, that's built in with useParams:
https://stackoverflow.com/questions/62426998/react-hooks-how-to-get-parameter-value-from-query-string
Stack Overflow
How can I use react hooks and get query string value?
with react class I use :
const id = this.props.match.params.id;
"query parameters"
or query string
absolute legend!! thank you!