Добавление int и строки в React props
href={"#demo" + this.state.id}
Unusual Unicorn
href={"#demo" + this.state.id}