Skip to content

Commit

Permalink
body made
Browse files Browse the repository at this point in the history
  • Loading branch information
theDevSoham committed Apr 28, 2023
1 parent c83877e commit 6a392e7
Show file tree
Hide file tree
Showing 6 changed files with 2,786 additions and 5 deletions.
13 changes: 10 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import React from 'react'
import React, { Suspense, lazy } from 'react'
import './index.css'
import Loader from './components/Loader'
import Header from './components/Header'
const Body = lazy(async () => await import('./components/Body'))

const App: React.FC = (): JSX.Element => {
return (
<div className="App">
<h1>React App</h1>
<div className="w-screen h-screen">
<Header />
<Suspense fallback={<Loader />}>
<Body />
</Suspense>
</div>
)
}
Expand Down
Loading

0 comments on commit 6a392e7

Please sign in to comment.