adspace
Answer Posted / Prem Varddhan
A functional-style component in React is a component that returns a React element (JSX) instead of using a render method. It is also known as a stateless component.nnHere's an example of a functional component:nn```javascriptnfunction MyComponent(props) {n return <div>Hello {props.name}!</div>n}n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers