Web / React native Interview questions
What are the different ways to create React components?
There are 2 ways of writing a react component.
Functional component uses a simple function which returns the JSX.
Class based component uses the class keyword introduced in ES6. it implements render lifecycle method which returns the JSX.
More Related questions...