INNER CODE UNIT · JavaScript
ExplorePage
Sandermoen/instaclone · client/src/components/App/App.js:34
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();