INNER CODE UNIT · JavaScript
Login
jigar-sable/instagram-mern · frontend/src/App.js:17
const Login = lazy(() => import('./components/User/Login'));
const ForgotPassword = lazy(() => import('./components/User/ForgotPassword'));
const ResetPassword = lazy(() => import('./components/User/ResetPassword'));
const Update = lazy(() => import('./components/User/Update/Update'));
const Inbox = lazy(() => import('./components/Chats/Inbox'));
const NotFound = lazy(() => import('./components/Errors/NotFound'));
function App() {
const dispatch = useDispatch();
const { pathname } = useLocation();
toast.configure({
theme: 'colored',
position: toast.POSITION.TOP_RIGHT,
autoClose: 2500,
});