pass multiple variables as single prop in component react code example
Example: passing multiple props to child component in react
<ChildComponentName value1={this.state.value1} value2={this.state.value2}/>
<ChildComponentName value1={this.state.value1} value2={this.state.value2}/>