This is my App.js
,
import React, { Suspense } from 'react';
import './App.css';
import SyncLoader from "react-spinners/SyncLoader";
const Newhome = React.lazy(() => import('./COMPONENTS/Newhome'));
function App() {
return (
<div>
<Suspense className='App' fallback={
<div className='align'>
<SyncLoader size={'20px'} color='#FF5757' className='loader App'/>
</div>
}>
<Newhome />
</Suspense>
</div>
);
}
export default App;
The problem with this is the image is taking some more time after the loader disappears, I also tried to reduce the image size.
But nothing is happening, can anyone suggest to me what should I change in this code?
The image is in the Newhome.jsx which is imported at the top.