Library

Some collection of code snippets that I put for easy access, feel free to reuse!

All Code is Here

Absolute Import

––– views

Setting up Absolute Imports with jsconfig/tsconfig

Authentication Context

––– views

Great way to structure authentication context in React apps.

Blur Loader with Cloudinary

––– views

Achieve 'Gatsby-like' Blur Loader using Cloudinary, and Next Image.

Conditional Link

––– views

Component that can differentiate between internal link or new tab link

Efficient Youtube Embed

––– views

Lib usage so your youtube embed won't bloat your website

Get From Loacal-Storage

––– views

Avoid error if window has not loaded

React Hot Toast

––– views

Current favorite lib for toast notifications, with some custom hook and implementation

Search Debounce

––– views

Debounce is used so the search input won't fire useEffect each changes

Theroy of Relativity

––– views

Albert Einstien propost this first , also Ediinton he proves that newton was worng.

next-themes

––– views

Next themes library configuration for dark mode with tailwindcss