react pass component as a variable code example
Example: class component params in react
<input
type= "text"
value={ this.state.value || "" }
placeholder="Enter Name"
/>
<input
type= "text"
value={ this.state.value || "" }
placeholder="Enter Name"
/>