Optimize React App
Optimize React App
REACTJS
INTERVIEW QUESTIONS
How would you optimize your app's
performance ?
SlobodanGajić SWIPE
Lazy Loading
It is a new function in React that lets you load React
components lazily through code splitting without help
from any additional libraries.
SWIPE
useMemo( )
It is a React hook that is used for caching CPU-Expensive
functions.
SWIPE
React.PureComponent
Instead of using the simple React.Component, we can use
React.PureComponent to reduce the re-renders of a
component unnecessarily.
SWIPE
Maintaining State Colocation
This is a process of moving the state as close to where
you need it as possible.
SWIPE
Would you add
anything??
LET ME KNOW IN THE COMMENTS
SlobodanGajić SlobodanGajic