Skip to content

Instantly share code, notes, and snippets.

View Wxh16144's full-sized avatar
♥️
antd & React

Wxh16144

♥️
antd & React
View GitHub Profile
"use client";
import { cache, unstable_postpone } from "react";
import { preload } from "react-dom";
const loadImage = cache((src: string) => {
return new Promise<void>((resolve, reject) => {
const img = new Image();
img.src = src;