title: Adding Component's State to a String in React
body: <p>I have a component with the following states: </p>
  
  <pre><code>class Example extends Component {
    constructor(props) {
      super(props);
      this.state = { 
        var1: "Dog",
        var2: "Cat",
        var3: [20, 40],
        currentFilter:"None"
      };
        this.updateFilter = this.updateFilter.bind(this);
    }
  </code></pre>
  
  <p>In the update filter function, I want to incorporate all the state properties, but the following syntax does not work:</p>
  
  <pre><code>updateFilter(){
    var newSearch= "Searching" {this.state.var1} + {this.state.var2}
    this.setState({
      currentFilter: newSearch
    });
  }
  </code></pre>
  
  <p>Is there a way to incorporate the properties of state into the string variable?</p>