“In React, everything is a component.” Explain.
What is the purpose of render() in React.
What is Props?
What is a state in React and how is it used?
What is arrow function in React? How is it used?
What are the different phases of React component’s lifecycle?
What is an event in React?
In React, events are the triggered reactions to specific actions like mouse hover, mouse click, key press, etc. Handling these events are similar to handling events in DOM elements. But there are some syntactical differences like:
The event argument contains a set of properties, which are specific to an event. Each event type contains its own properties and behavior which can be accessed via its event handler only.
What are synthetic events in React?
How do you modularize code in React?
How are forms created in React?
What do you know about controlled and uncontrolled components?
Controlled Components
Uncontrolled Components