title: How to convert object to string in react js
body: <p>How to convert object to string in react js</p>
  
  <pre><code>var numeroToken = this.getSearchParams();
  
   getSearchParams(k){
           var p={};
           location.search.replace(/[?&amp;]+([^=&amp;]+)=([^&amp;]*)/gi,function(s,k,v){p[k]=v})
           return k?p[k]:p;
      }
  </code></pre>
  
  <p>I am trying to get the url from getSeatchParms() but it is returned as an object. How can I convert it to a String?</p>