Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F969262
index.jsx
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1021 B
Referenced Files
None
Subscribers
None
index.jsx
View Options
import
'babel-polyfill'
;
import
React
from
'react'
;
import
ReactDOM
from
'react-dom'
;
import
{
BrowserRouter
as
HashRouter
,
Route
,
Link
}
from
'react-router-dom'
;
import
Collections
from
'./collections/collections.jsx'
;
import
useCollections
from
'./collections/use-collections.js'
;
import
'./remedy.css'
;
import
'./index.scss'
;
function
AppRouter
()
{
const
collections
=
useCollections
();
return
(
<
HashRouter
basename
=
"/#"
>
<
div
>
<
Link
to
=
"/"
>
<
div
className
=
"sealpage-logo"
/>
<
h1
>
Sealpage
<
/h1>
<
/Link>
<
nav
>
<
ul
>
{
collections
.
map
(
collection
=>
(
<
li
key
=
{
collection
.
name
}
>
<
Link
to
=
{
`/collections/
${
collection
.
name
}
`
}
>
{
collection
.
name
}
<
/Link>
<
/li>
))}
<
/ul>
<
/nav>
<
hr
/>
<
Route
path
=
"/"
exact
component
=
{()
=>
<
h2
>
Admin
panel
<
/h2>} /
>
<
Route
path
=
"/collections"
component
=
{
Collections
}
/>
<
/div>
<
/HashRouter>
);
}
ReactDOM
.
render
(
React
.
createElement
(
AppRouter
),
document
.
getElementById
(
'app'
));
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Nov 22, 09:29 (8 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
547673
Default Alt Text
index.jsx (1021 B)
Attached To
Mode
rSEALPAGE Sealpage
Attached
Detach File
Event Timeline
Log In to Comment