react-getquery-params
Version:
getQueryParams() helps to catch all query parameter in React App
16 lines (14 loc) • 421 B
Markdown
### React App - getQueryParams
1. You can easily catch all the `query parameters` by calling `getQueryParams()` function
```javascript
import getQueryParams from 'react-getquery-params';
```
2. Pass the query parameter this way
```javascript
<Link to={`/about?name=munna&age=10`}>About</Link>
```
3. Show that query using console log.
```javascript
const name = getQueryParams()
console.log(name)
```