1.0.6 • Published 7 months ago
react-getquery-params v1.0.6
React App - getQueryParams
- You can easily catch all the
query parameters
by 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)