feat(directory): update routers
This commit is contained in:
0
directory/src/routes/path/home.css
Normal file
0
directory/src/routes/path/home.css
Normal file
24
directory/src/routes/path/home.jsx
Normal file
24
directory/src/routes/path/home.jsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import {
|
||||
useState,
|
||||
useEffect
|
||||
} from 'react'
|
||||
import './home.css'
|
||||
|
||||
export default function Home(props) {
|
||||
useEffect(() => {
|
||||
fetch("/_assets/directory.json").then(res => res.json()).then(data => {
|
||||
console.log(data)
|
||||
})
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<section>
|
||||
<section>
|
||||
1233
|
||||
</section>
|
||||
<section>
|
||||
22s
|
||||
</section>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
0
directory/src/routes/path/operator.css
Normal file
0
directory/src/routes/path/operator.css
Normal file
19
directory/src/routes/path/operator.jsx
Normal file
19
directory/src/routes/path/operator.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import {
|
||||
useState,
|
||||
useEffect
|
||||
} from 'react'
|
||||
import './operator.css'
|
||||
|
||||
export default function Operator(props) {
|
||||
|
||||
return (
|
||||
<section>
|
||||
<section>
|
||||
1
|
||||
</section>
|
||||
<section>
|
||||
2
|
||||
</section>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user