parent
ed6065d81f
commit
6199f01a53
1 changed files with 19 additions and 3 deletions
@ -1,17 +1,33 @@ |
|||||||
|
import React, { Component, lazy, Suspense } from "react"; |
||||||
|
|
||||||
import Router from "./router.js"; |
import Router from "./router.js"; |
||||||
import { Provider } from "react-redux"; |
import { Provider } from "react-redux"; |
||||||
import store from "./redux/store"; |
import store from "./redux/store"; |
||||||
import "./App.scss"; |
import "./App.scss"; |
||||||
|
|
||||||
|
// const MyComp = lazy(() => import("./components/myComp"));
|
||||||
|
|
||||||
// import "rc-slider/assets/index.css";
|
// import "rc-slider/assets/index.css";
|
||||||
// import "react-circular-progressbar/dist/styles.css";
|
// import "react-circular-progressbar/dist/styles.css";
|
||||||
|
|
||||||
function App() { |
function App() { |
||||||
return ( |
return ( |
||||||
<Provider store={store}> |
<> |
||||||
<Router /> |
<div className="bg-red-400">mahdi lazy loaded</div> |
||||||
</Provider> |
<Suspense fallback={<div>Loading...</div>}> |
||||||
|
<h2>hi there i am loaded NOWW</h2> |
||||||
|
<Provider store={store}> |
||||||
|
<Router /> |
||||||
|
</Provider> |
||||||
|
</Suspense> |
||||||
|
</> |
||||||
); |
); |
||||||
} |
} |
||||||
|
|
||||||
export default App; |
export default App; |
||||||
|
|
||||||
|
// return (
|
||||||
|
// <Provider store={store}>
|
||||||
|
// <Router />
|
||||||
|
// </Provider>
|
||||||
|
// );
|
||||||
|
Loading…
Reference in new issue