Adding Lazy Loading to the Bank App
In this lesson, we'll add lazy loading to our bank app to increase its performance.
We'll cover the following...
We can add some lazy loading to the bank application we saw in the last chapter.
Consider the Root
component of the application:
Press + to interact
const Root = () => (<UserProvider><UserConsumer>{({ user, handleLogin }) =>user ? <App /> : <Login handleLogin={handleLogin} />}</UserConsumer></UserProvider>)
...