INNER CODE UNIT · JavaScript

NewPostPage

Sandermoen/instaclone · client/src/components/App/App.js:33

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 },
  } = useHistory();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…