Skip to content
Back to skills

Rerender Derived State

ASecurity

Imported skill rerender_derived_state from vercel

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
researchreact

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add bitwikiorg/skills.md --skill rerender_derived_state --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rerender Derived State?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rerender Derived State
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bitwikiorg-rerender-derived-state/badge)](https://www.skillsdirectory.com/skills/bitwikiorg-rerender-derived-state)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Imported skill rerender_derived_state from vercel
name: rerender_derived_state
signature: 1c326bb67b01fb084eb00c8911b0a7cff54681c2315b629f88e49b64eaa6481d
source: /a0/tmp/skills_research/vercel/skills/react-best-practices/rules/rerender-derived-state.md
---

---
title: Subscribe to Derived State
impact: MEDIUM
impactDescription: reduces re-render frequency
tags: rerender, derived-state, media-query, optimization
---

## Subscribe to Derived State

Subscribe to derived boolean state instead of continuous values to reduce re-render frequency.

**Incorrect (re-renders on every pixel change):**

```tsx
function Sidebar() {
  const width = useWindowWidth()  // updates continuously
  const isMobile = width < 768
  return <nav className={isMobile ? 'mobile' : 'desktop'} />
}
```

**Correct (re-renders only when boolean changes):**

```tsx
function Sidebar() {
  const isMobile = useMediaQuery('(max-width: 767px)')
  return <nav className={isMobile ? 'mobile' : 'desktop'} />
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.