using a function to set props react 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"
/>