October 2019
Intermediate to advanced
426 pages
11h 49m
English
Next, we are going to implement lazy loading for the Logout component by wrapping it with React.lazy(), as follows:
import Logout from './Logout'
const Logout = React.lazy(() => import('./Logout'))
If we want to see lazy loading in action, we can set Network Throttling to Slow 3G in Google Chrome:
Read now
Unlock full access