returning components through function reacts 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"
/>