test lazy loading
This commit is contained in:
1
Makefile
1
Makefile
@@ -5,7 +5,6 @@ deploy: public/build/manifest.json
|
||||
|
||||
install: vendor/autoload.php
|
||||
php artisan down
|
||||
php artisan optimize:clear
|
||||
php artisan migrate --force
|
||||
php artisan optimize
|
||||
php artisan up
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
import React, {Suspense} from "react";
|
||||
import React, {lazy, Suspense} from "react";
|
||||
import {BrowserRouter, Link, Route, Routes} from "react-router-dom";
|
||||
import Home from "./Home";
|
||||
import Login from "./Auth/Login";
|
||||
// import Login from "./Auth/Login";
|
||||
import Register from "./Auth/Register";
|
||||
import useAuthUser from "../hooks/AuthUser";
|
||||
import Profile from "./Auth/Profile";
|
||||
import Header from "../components/Header";
|
||||
import Rainfall from "./Rainfall";
|
||||
// import Rainfall from "./Rainfall";
|
||||
import Meteo from "./Meteo";
|
||||
import Reset from "./Auth/Reset";
|
||||
import ForgotPassword from "./Auth/ForgotPassword";
|
||||
// import Reset from "./Auth/Reset";
|
||||
// import ForgotPassword from "./Auth/ForgotPassword";
|
||||
|
||||
const ForgotPassword = lazy(() => import('./Auth/ForgotPassword'))
|
||||
const Login = lazy(() => import('./Auth/Login'))
|
||||
const Reset = lazy(() => import('./Auth/Reset'))
|
||||
const Rainfall = lazy(() => import('./Rainfall'))
|
||||
|
||||
const Router = () => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user