Loading...
Loading...
Build bulletproof React components that survive SSR, hydration, concurrent rendering, portals, transitions, and future React changes. Nine essential patterns from Shu Ding's guide. Use when writing reusable React components, fixing hydration mismatches, handling SSR edge cases, or building component libraries.
npx skill4agent add codewithshreyans/skills bulletproof-react-components./references/patterns.md| # | Pattern | Rule |
|---|---|---|
| 1 | Server-Proof | Never call browser APIs ( |
| 2 | Hydration-Proof | Inject a synchronous inline |
| 3 | Instance-Proof | Use |
| 4 | Concurrent-Proof | Wrap server data-fetching in |
| 5 | Composition-Proof | Use Context instead of |
| 6 | Portal-Proof | Use |
| 7 | Transition-Proof | Wrap state updates in |
| 8 | Activity-Proof | Use |
| 9 | Future-Proof | Use |
useId()cache()cloneElementownerDocument.defaultViewstartTransition()<Activity>useStateuseMemo**Bulletproof Check: `<ComponentName>`**
| Pattern | Status | Notes |
|---------|--------|-------|
| Server-Proof | PASS/FAIL | ... |
| ... | ... | ... |
**Suggested fixes:**
1. ..../references/patterns.md