Explain error boundaries?
Error boundaries help you to catch Javascript error anywhere in the child components. They are most used to log the error and show a fallback UI.
Error boundaries help you to catch Javascript error anywhere in the child components. They are most used to log the error and show a fallback UI.
Children props are used to pass component to other components as properties. You can access it by using {props.children}
Keys allow you to provide each list element with a stable identity. The keys should be unique.
‘create-react-app’ is a command-line tool which allows you to create one basic react application.
There are mainly two sorts of information that control a segment: State and Props State: State information that will change, we need to utilize State. Props: Props are set by…
Pure components are the fastest components which can replace any component with only a render(). It helps you to enhance the simplicity of the code and performance of the application.
The main difference the two is that the State is mutable and Pros are immutable.
Important lifecycle steps of React js are: Initialization State/Property updates Destruction are the lifecycle of React
The arrow function helps you to predict the behavior of bugs when passed as a callback. Therefore, it prevents bug caused by this all together.
A state can be updated on the component directly or indirectly.