INNER CODE UNIT · JavaScript
HomePage
Sandermoen/instaclone · client/src/components/App/App.js:32
const HomePage = lazy(() => import('../../pages/HomePage/HomePage'));
const NewPostPage = lazy(() => import('../../pages/NewPostPage/NewPostPage'));
const ExplorePage = lazy(() => import('../../pages/ExplorePage/ExplorePage'));
const NotFoundPage = lazy(() =>
import('../../pages/NotFoundPage/NotFoundPage')
);
export function UnconnectedApp({
signInStart,
modal,
alert,
currentUser,
connectSocket,
fetchNotificationsStart,
}) {
const token = localStorage.getItem('token');
const {
location: { pathname },