-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

React Interview Guide
By :

The data inside a component is controlled by props and state. All kinds of React applications are based on these two concepts, and they are important core topics that help with creating efficient and robust applications. These topics are not only useful in interviews, as you will also encounter their usage in everyday jobs.
Props, which stands for properties, are arguments that appear in the form of either individual values or an object holding a set of values that are passed into components. Their naming convention is similar to that of HTML attributes. They help pass data from the parent component to the child component and are used to render the child component dynamically on the screen. This means that props act as a channel for components to communicate inside the component tree.
The main purpose of props in React is to achieve the following component functionality: