mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-22 08:02:25 +01:00
* 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>
15 lines
221 B
TypeScript
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
|