FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codespaces-preact/src/index.jsx at main · github/codespaces-preact · GitHub
github
/
codespaces-preact
Public template
Notifications
You must be signed in to change notification settings
Fork
65
Star
84
Code
Issues
3
Pull requests
1
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
codespaces-preact
/
src
/
index.jsx
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (20 loc) · 541 Bytes
Breadcrumbs
codespaces-preact
/
src
/
index.jsx
Copy path
File metadata and controls
23 lines (20 loc) · 541 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import
{
render
}
from
'preact'
;
import
{
LocationProvider
,
Router
,
Route
}
from
'preact-iso'
;
import
{
Header
}
from
'./components/Header.jsx'
;
import
{
Home
}
from
'./pages/Home/index.jsx'
;
import
{
NotFound
}
from
'./pages/_404.jsx'
;
import
'./style.css'
;
export
function
App
(
)
{
return
(
<
LocationProvider
>
<
Header
/>
<
main
>
<
Router
>
<
Route
path
=
"/"
component
=
{
Home
}
/>
<
Route
default
component
=
{
NotFound
}
/>
</
Router
>
</
main
>
</
LocationProvider
>
)
;
}
render
(
<
App
/>
,
document
.
getElementById
(
'app'
)
)
;
Back
|
FazBrowse Home
|
New Git URL