Zmienne i struny związane w reagowaniu

href={"#demo" + this.state.id}

//You can also use ES6 string interpolation/template literals with 
//` (backticks) and ${expr} (interpolated expression),

href={`#demo${this.state.id}`}

source
https://stackoverflow.com/questions/39523040/concatenating-variables-and-strings-in-react
abdelghanyMh