1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-22 08:02:25 +01:00
slate/site/pages/index.tsx
Wendell Hu 912d4b79da
docs: convert examples to typescript (#3766)
* docs: convert examples to typescript

* docs: convert remaining examples

* docs: update next.js

* ci: fix lint

* docs: fix next.js path

* docs: cleanup

* update

Co-authored-by: wendellhu <wendellhu@tencent.com>
2020-08-19 09:14:51 -07:00

15 lines
221 B
TypeScript

import { useEffect } from 'react'
import { useRouter } from 'next/router'
const Home = () => {
const router = useRouter()
useEffect(() => {
router.replace(`/examples`)
})
return null
}
export default Home