Prefered FE stack => Nextjs + ReactQuery + Tailwind + RadixUI/shadcdn + Tailwind + Zustand
Prefered BE stack => Express + Sqlite + Drizzle
Interests => C++, Wasm, Blockchain
git reset --hard HEAD~1
git push -f
Prefered FE stack => Nextjs + ReactQuery + Tailwind + RadixUI/shadcdn + Tailwind + Zustand
Prefered BE stack => Express + Sqlite + Drizzle
Interests => C++, Wasm, Blockchain
git reset --hard HEAD~1
git push -f
// -------------------------
// useMediaQuery
import { useState, useEffect, useLayoutEffect } from "react";
// #1. With a controlled input
import { useState, useEffect } from 'react';
const debounce = require("lodash.debounce");
function SearchBar({ onSearch, wait = 500 }) {
import { useRef, useEffect, useState } from "react";
export default function Test() {
const [height, setHeight] = useState(0);
const ref = useRef<HTMLDivElement>(null);
const api = axios.create({
baseURL: "xxx/graphql",
method: "POST",
headers: { "Content-Type": "application/json" },
});