react-getquery-params
v1.0.6
Published
getQueryParams() helps to catch all query parameter in React App
Maintainers
Readme
React App - getQueryParams
- You can easily catch all the
query parametersby callinggetQueryParams()function
import getQueryParams from 'react-getquery-params';- Pass the query parameter this way
<Link to={`/about?name=munna&age=10`}>About</Link>- Show that query using console log.
const name = getQueryParams()
console.log(name)