INNER CODE UNIT · JavaScript
ForgotPassword
jigar-sable/instagram-mern · frontend/src/App.js:18
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,
});
const { isAuthenticated } = useSelector((state) => state.user);