react pass number as prop code example Example: adding int and string in react props href={"#demo" + this.state.id}