react components using function declarations code example
Example 1: react functional components
const component = () => {
console.log("This is a functional Component");
}
Example 2: class component params in react
<input
type= "text"
value={ this.state.value || "" }
placeholder="Enter Name"
/>