mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
- Reverts https://github.com/vercel/next.js/pull/44616 - Regression introduced in https://github.com/vercel/next.js/pull/51651 - Fixes https://github.com/vercel/next.js/issues/55013
10 lines
245 B
TypeScript
10 lines
245 B
TypeScript
'use client'
|
|
import { useRouter } from 'next/navigation'
|
|
import React from 'react'
|
|
|
|
export default function Button() {
|
|
const router = useRouter()
|
|
const onClick = () => router.push('/')
|
|
return <button onClick={onClick}>My Button</button>
|
|
}
|