react verisonin parameter code example
Example 1: react button onclick
<button onClick={sayHello}>Click</button>
Example 2: class component params in react
<input
type= "text"
value={ this.state.value || "" }
placeholder="Enter Name"
/>