-
What is prop drilling Prop Drilling is the process by which data is passed from one component to deeply nested components. This becomes a problem as other components will contain data that they don’t need.
-
What is HOC
-
What is React.Lazy
-
What is React.memo
-
What is React.fragment Avoid Adding Extra Nodes to the DOM React Fragments do not produce any extra elements in the DOM Fragment’s child components will be rendered without any wrapping DOM node.
function App() {
return (
<React.Fragment>
<h1>Best App</h1>
<p>Easy as pie!</p>
</React.Fragment>
);
}
or
function App() {
return (
<>
<h1>Best App</h1>
<p>Easy as pie!</p>
</>
);
}
- What is re-reselect