title: concatenate variable in URL.React Native
body: <p>I am unable to concatenate state in URL. Have searched but I could not find the solution, and i'm a beginner sorry for asking such a basic question. State has the value before it is sent as a parameter in URL(i have seen it in console), API returns the expected result if I hard code the value, but if a state or even a variable is passed as a parameter it returns error: "NO records found". What am I doing wrong?</p>
  
  <pre><code>   this.state.secid = this.props.navigation.state.params.secid
     console.log(this.state.secid)
     this.state.classid = this.props.navigation.state.params.clasid
     console.log(this.state.classid)
  
     // Sending Request
    fetch('exampleapi/parameter?
    class=${this.state.classid}&amp;section=${this.state.secid}',{      
        headers:  {      
       'Content-Type':'application/json',
       'credentials': 'same-origin',
       'Accept': 'application/json',
       'Authorization': 'Bearer ' + tokenval  
      }  
      })
      .then((response) =&gt; response.json())
      .then((responseJson) =&gt; { 
        this.setState({ allstudents : responseJson })
        console.log(this.state.allstudents)
      })
  </code></pre>