This library is no longer being maintained.
npm install --save superquery
import createQuery from 'superquery'
// choose parse and stringify functions from whatever library you want and pass them in
import {parse, stringify} from 'qs'
const Query = createQuery({parse, stringify})
const query = Query('strings=work', {objects: 'work too'}, 'arguments=are%20unlimited')
// query.strings === 'work'
// query.objects === 'work too'
// query.arguments === 'are unlimited'
const newURL = `http://localhost?${Query('strings=work', {objects: 'work too'}, 'arguments=are%20unlimited')}`
// http://localhost?strings=work&objects=work%20too&arguments=are%20unlimited
const Results = ({match, location}) => (
<div>
<table>...</table>
...
<Link to={`${match.url}?${Query(location.search, {page: 1})}`}>
Page 1
</Link>
<Link to={`${match.url}?${Query(location.search, {page: 2})}`}>
Page 2
</Link>
...
</div>
)