feat(directory): update routers

This commit is contained in:
Haoyu Xu
2023-02-22 19:54:23 -05:00
parent ef10b8fb55
commit b5d44855fe
7 changed files with 54 additions and 51 deletions

View File

View 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>
)
}

View File

View 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>
)
}