React Useeffect Review logo

React Useeffect Review

Community
felvieira
react-useeffect-review

Checklist React para decidir quando não usar useEffect em estado derivado, fetch, sincronização e reset de props. Trigger em: "useEffect", "estado derivado", "race condition no fetch", "sincronizar estado", "resetar estado quando prop muda", "effect chain", "notificar parent via effect", "useSyncExternalStore", "por que renderizou duas vezes".

Overview

Publisherfelvieira
Repositoryclaude-skills-fv
Skill namereact-useeffect-review
Stars
28
Forks
5
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by felvieira on GitHub. Read the source before you install it.

Installation

Install the React Useeffect Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/felvieira/claude-skills-fv/tree/main/skills/79-react-useeffect-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/felvieira/claude-skills-fv.git /tmp/claude-skills-fv
mkdir -p .claude/skills
cp -r /tmp/claude-skills-fv/skills/79-react-useeffect-review .claude/skills/react-useeffect-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable React Useeffect Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads React Useeffect Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so React Useeffect Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

React useEffect — Quando NAO Usar

Effects sao uma valvula de escape do React: servem pra sincronizar com um sistema externo (DOM nao-React, API do browser, subscription de store externa). Se nao ha sistema externo envolvido, provavelmente nao precisa de Effect — e o codigo com Effect desnecessario tende a rodar em passes extras, causar race condition ou disparar em momentos inesperados (ex: refresh de pagina).

Esta skill entra em dois momentos: (1) ao escrever um useEffect novo, como checklist antes de commitar; (2) ao revisar codigo/PR que usa useEffect, como lente pra achar o antipattern especifico e sugerir a alternativa direta.

Governanca Global

Esta skill segue GLOBAL.md, policies/execution.md, policies/handoffs.md.

Quando Usar

  • escrever um useEffect novo, como checklist antes de commitar
  • revisar código/PR que usa useEffect, pra achar o antipattern específico
  • componente renderiza duas vezes de forma inesperada, ou tem race condition em fetch
  • estado parece sincronizado manualmente quando poderia ser calculado direto

Quando Nao Usar

  • a sincronização é de fato com um sistema externo (widget não-React, API de browser, subscription) — aí o Effect é a ferramenta certa
  • o código já usa useSyncExternalStore, key prop, ou calcula no render corretamente — nada a revisar

Quick Reference

SituacaoNAO FACAFACA
Estado derivado de props/stateuseState + useEffectCalcular durante o render
Calculo carouseEffect pra cachearuseMemo
Resetar estado ao mudar propuseEffect com setStatekey prop
Resposta a evento do usuariouseEffect observando stateDireto no event handler
Notificar parent de uma mudancauseEffect chamando onChangeChamar no mesmo event handler
Fetch de dadosuseEffect sem cleanupuseEffect com cleanup OU lib de fetch

Arvore de Decisao

Precisa responder a algo?
├── Interacao do usuario (click, submit, drag)?
│   └── EVENT HANDLER
├── Componente apareceu na tela e precisa sincronizar com algo externo?
│   └── EFFECT (widget nao-React, analytics, subscription)
├── Prop/state mudou e precisa de um valor derivado?
│   └── CALCULAR DURANTE O RENDER
│       └── Caro? use useMemo
└── Precisa resetar estado quando uma prop de identidade muda?
    └── KEY PROP no componente filho

Quando DE FATO precisa de Effect

  • Sincronizar com sistema externo (widget nao-React, API de browser)
  • Subscription a store externo (preferir useSyncExternalStore)
  • Analytics/log que deve rodar porque o componente foi exibido
  • Data fetching com cleanup adequado (ou usar mecanismo de fetch do framework)

Guia Detalhado

  • anti-patterns.md — 9 antipatterns com exemplo ruim/bom lado a lado (estado derivado, filtro em Effect, reset via Effect, logica de evento em Effect, chain de Effects, notificar parent, subir dado pro parent, fetch sem cleanup, inicializacao duplicada em dev)
  • alternatives.md — as alternativas em detalhe (calcular no render, useMemo, key prop, guardar ID em vez de objeto, event handler, useSyncExternalStore, lifting state up, custom hook de fetch)

Evidencia de Conclusao

  • código revisado não tem useEffect cobrindo um dos 9 antipadrões de anti-patterns.md
  • toda sincronização com sistema externo restante está justificada (subscription, widget não-React, analytics)

Handoff

  • Frontend Engineer (skill 04) — recebe o código já revisado antes de integrar com o resto da feature
  • Reviewer (skill 11) — pode citar esta skill como critério de qualidade no checklist de código

Integracao com Pipeline

  • Frontend Engineer (04): consultar antes de escrever useEffect novo, ou ao revisar PR com hooks
  • Reviewer (11): critério de qualidade de código React durante review final

Fontes

Conteúdo adaptado do skill público react-useeffect do repositório wealthfolio/wealthfolio (.claude/skills/react-useeffect/), que por sua vez destila a doc oficial "You Might Not Need an Effect". Sem acoplamento a nenhum projeto específico — aplicável a qualquer codebase React/Next.js do kit.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the React Useeffect Review AI skill do?

Checklist React para decidir quando não usar useEffect em estado derivado, fetch, sincronização e reset de props. Trigger em: "useEffect", "estado derivado", "race condition no fetch", "sincronizar estado", "resetar estado quando prop muda", "effect chain", "notificar parent via effect", "useSyncExternalStore", "por que renderizou duas vezes".

Why use React Useeffect Review on TypingMind?

Because you install it once and use it with any model. React Useeffect Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install React Useeffect Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/felvieira/claude-skills-fv/tree/main/skills/79-react-useeffect-review. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use React Useeffect Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with React Useeffect Review?

As many as you like. As long as a model supports skills, you can use React Useeffect Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the React Useeffect Review AI skill free?

Yes. It is published on GitHub by felvieira under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇