SyntaxFix
Write A Post
Hire A Developer
Questions
axios.get accepts a request config as the second parameter (not query string params).
axios.get
You can use the params config option to set query string params as follows:
params
axios.get('/api', { params: { foo: 'bar' } });