Toolverse
All skills

rerender-memo

by TheOrcDev

Extract expensive work into memoized components with React.memo. Apply when components perform expensive computations that can be skipped when props haven't changed.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
TheOrcDev
Category
Frontend
Views
8

About this skill

Extract expensive work into memoized components with React.memo. Apply when components perform expensive computations that can be skipped when props haven't changed.

How to use

  1. Zidentyfikuj komponent, który wykonuje kosztowne obliczenia (np. useMemo z ciężką funkcją) i renderuje je bezwarunkowo, niezależnie od stanu rodzica.

  2. Wydziel tę logikę do nowego, osobnego komponentu — opakuj go w React.memo(). Komponent powinien przyjmować tylko dane potrzebne do obliczeń jako props.

  3. Przenieś useMemo z obliczeniami do wnętrza nowego zapamiętanego komponentu, aby obliczeń nie uruchamiać, jeśli props się nie zmienią.

  4. W komponencie rodzica dodaj warunkowy zwrot (np. if (loading) return Skeleton) PRZED renderowaniem zapamiętanego komponentu — dzięki temu React w ogóle nie wejdzie do jego funkcji, gdy warunek jest spełniony.

  5. Przetestuj, czy komponent przestał się renderować niepotrzebnie — użyj React DevTools Profiler, aby potwierdzić, że zapamiętany komponent nie uruchamia się, gdy jego props się nie zmienią.

Related skills

zustand

by lobehub

Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.

Frontend
36126

google-official-seo-guide

by littleben

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

Frontend
101196

shadcn-ui-setup

by maneeshanif

Install and configure Shadcn/ui component library with Radix UI primitives, Aceternity UI effects, set up components, and manage the component registry. Use when adding Shadcn/ui to a Next.js project or installing specific UI components for Phase 2.

Frontend
23167

browser-automation

by browserbase

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Triggers include \

Frontend
21175

markitdown

by K-Dense-AI

Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing. Use when converting documents to markdown, extracting text from PDFs/Office files, transcribing audio, performing OCR on images, extracting

Frontend
75173

interactive-dashboard-builder

by anthropics

Build self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive reports, or generating shareable HTML files with charts and filters that work without a server.

Frontend
2298