concatenating variables and strings in react

Solutions on MaxInterview for concatenating variables and strings in react by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "concatenating variables and strings in react"
Robin
24 Apr 2016
1href={"#demo" + this.state.id}
2
3//You can also use ES6 string interpolation/template literals with 
4//` (backticks) and ${expr} (interpolated expression),
5
6href={`#demo${this.state.id}`}
7
8source
9https://stackoverflow.com/questions/39523040/concatenating-variables-and-strings-in-react
10