Đi tới nội dung chính
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn và đang được hiển thị bằng tiếng Anh.

use-sync-external-store

Skill Đã xác minh
98

Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.

Tóm tắt từ AI

This package provides a shim for React's `useSyncExternalStore` hook, ensuring compatibility with older React versions that support hooks. It is part of the official React repository and includes logic for both client and server environments.

Cài đặt

npx skills add facebook/react

Chạy Vercel skills CLI (skills.sh) qua npx — yêu cầu Node.js trên máy và ít nhất một agent tương thích skills đã được cài (Claude Code, Cursor, Codex, …). Giả định repo tuân theo định dạng agentskills.io.

Cập nhật 2 days ago
Xem mã nguồn