mirror of
https://github.com/ershisan99/instagram-client-front.git
synced 2026-01-26 05:12:06 +00:00
initial commit
This commit is contained in:
6
src/hooks/use-auto-id.ts
Normal file
6
src/hooks/use-auto-id.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useId } from 'react'
|
||||
|
||||
export const useAutoId = (id?: string) => {
|
||||
const generatedId = useId()
|
||||
return id ?? generatedId
|
||||
}
|
||||
Reference in New Issue
Block a user