{}Snippt
ExploreTags
New
ma

@maya_dev

Frontend engineer. I collect tiny utilities and React hooks.

3

Snippets

673

Total views

Jun 8, 2026

Joined

Public snippets

Debounced search input

@maya_dev·14h ago

TSX
function SearchBox({ onSearch }: { onSearch: (q: string) => void }) {
    const [value, setValue] = useState('')
    const debounced = useDebounce(value, 250)
20301#hooks #react

Tailwind cn() class merger

@maya_dev·3d ago

TypeScript
import { clsx, type ClassValue } from 'clsx'
import { twMerge } from 'tailwind-merge'

// Merge conditional class names and resolve Tailwind conflicts.
12800#react #typescript #utils

useDebounce hook

@maya_dev·5d ago

TypeScript
import { useState, useEffect } from 'react'

export function useDebounce<T>(value: T, delay = 300): T {
    const [debounced, setDebounced] = useState(value)
34221#hooks #react #typescript
{}SnipptShare code, instantly.
ExploreTagsNew snippetSearch