scrimba
Build an Instagram clone in React
Pages, lazy/suspense & one source of truth
Implementing Suspense
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Implementing Suspense
Expand for more info
src
App.js
run
preview
console
import React, { lazy, Suspense } from 'react';

const Dashboard = lazy(() => import ('./pages/dashboard'));
const Login = lazy(() => import ('./pages/login'));
const SignUp = lazy(() => import ('./pages/signup'));
const Profile = lazy(() => import ('./pages/profile'));
const NotFound = lazy(() => import ('./pages/not-found'));

export default function App() {
return (<p>Hello</p>)
}
Console
/index.html
-3:20