Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get url query in react

const getQueryParams = () => window.location.search.replace('?', '').split('&').reduce((r,e) => (r[e.split('=')[0]] = decodeURIComponent(e.split('=')[1]), r), {});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #url #query #react
ADD COMMENT
Topic
Name
8+5 =