majiayu000/claude-skill-registry-data/latest-react
Claude Code and agent skill by majiayu000/claude-skill-registry-data
- community
- ext:[{"type":"context","description":"Custom context provider definitions"}]
Checking that the SKILL.md file is still in the repository.
Latest React features from React 19 and React Compiler (past 1.5 years - mid 2024 to 2026)
Install
npx vskill@latest install majiayu000/claude-skill-registry-data/latest-reactSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/latest-react.
Latest React Skill
Comprehensive knowledge of React features released from mid-2024 through 2026, focusing on React 19 (released December 2024, latest v19.2+), React Compiler (RC April 2025), and supporting ecosystem changes.
Official Resources
Major Features by Category
1. New Hooks (React 19)
useActionState
Manages state for asynchronous actions, particularly useful for form submissions and mutations.
Use cases: Form submissions, mutations, any async action that needs pending/error states
useOptimistic
Handles optimistic UI updates while waiting for async operations to complete.
Use cases: Like buttons, todo lists, any UI that can show predicted state
useFormStatus
Accesses parent form submission status from within a child component.
Use cases: Form submit buttons, progress indicators, child components that need form state
2. Actions & Async Transitions
React 19 adds support for using async functions directly in transitions.
Key capabilities:
- Automatic pending state management
- Built-in error handling
- Support for optimistic updates
- Non-blocking UI updates
3. API Simplifications
Context Providers - No More .Provider
Before React 19:
React 19+:
Ref as a Prop - No More forwardRef
Before React 19:
React 19+:
The ref prop is now a standard prop that can be passed directly to function components.
4. Document Metadata Support
React 19 introduces native support for document metadata. You can now place <title>, <meta>, and <link> tags directly in components, and React automatically "hoists" them to the <head> section.
Benefits:
- No more third-party libraries needed for SEO metadata
- Works from nested components
- Automatic deduplication
- Server-side rendering support
5. Enhanced Ref Callbacks
Ref callbacks can now return cleanup functions that run when the component unmounts.
6. Server Functions (formerly Server Actions)
As of September 2024, "Server Actions" were renamed to Server Functions. They integrate with Server Components and work seamlessly with <Suspense>.
7. Custom Elements Support
React 19 now has full support for Custom Elements (Web Components), addressing previous limitations with attribute handling and event propagation.
8. Hydration Improvements
- Graceful DOM mismatch handling: Better handling of unexpected DOM changes from third-party scripts
- Enhanced error messages: More detailed hydration error diffs
- Consolidated error logging: Single error containing all information instead of multiple console errors
9. New Error Callbacks
React 19 introduces new error handling callbacks at the root:
10. Resource Preloading & Stylesheet Management
Native support for managing resource loading priorities:
11. React Compiler (RC - April 2025)
The React Compiler is now feature-complete and production-ready.
Key capabilities:
- Automatic memoization: Eliminates need for manual
useMemoanduseCallback - Enhanced debugging: New tools including Owner Stack
- Performance optimization: Automatic detection and optimization of re-renders
Before Compiler:
With Compiler:
12. Strict Mode Changes (React 19)
React 19 includes fixes to Strict Mode behavior:
- useEffect double execution fixed: No more double API calls in development
- Better useMemo/useCallback behavior: Improved behavior during double rendering
- Clearer migration path: Better guidance for Strict Mode issues
13. Enhanced Suspense Support
Improved Suspense integration with Server Components and Server Functions:
Streaming and loading states are now core features of React Server Components + Suspense.
Migration Guide
Upgrading to React 19
- Remove deprecated APIs:
- Replace
React.PropTypeswithprop-typespackage - Remove
ReactDOM.render- usecreateRoot - Remove
UNSAFE_lifecycle methods
- Simplify components:
- Remove
forwardRefwrappers - Update Context providers to new syntax
- Replace manual memoization where Compiler is used
- Update forms:
- Consider using
useActionStatefor form submissions - Use
useFormStatusin child components - Leverage Actions for async transitions
- Error handling:
- Add
onCaughtErrorandonUncaughtErrorcallbacks - Update Error Boundaries for better error info
Best Practices (2025+)
- Prefer new hooks: Use
useActionState,useOptimistic, anduseFormStatusfor forms and async actions
- Simplify with Compiler: Let React Compiler handle memoization instead of manual
useMemo/useCallback
- Use native metadata: Place
<title>,<meta>,<link>directly in components instead of third-party libraries
- Leverage Server Functions: Use Server Functions for mutations and data fetching when possible
- Utilize Actions: Use async transitions with automatic error/pending state management
- Remove boilerplate: Take advantage of the new simplified APIs (no
forwardRef, no.Provider)
Common Patterns (2025 Style)
Form with Loading State
Optimistic List Updates
Document Metadata by Route
Ecosystem Considerations
Next.js Integration
- Next.js 15+ supports React 19
- Server Actions renamed to Server Functions aligns with Next.js conventions
- App Router works seamlessly with React 19 features
Testing
- React 19 is compatible with React Testing Library
- New hooks work with existing test patterns
- Strict Mode fixes improve test reliability
TypeScript Support
- Full TypeScript support for all new APIs
- Updated
@types/reactavailable - Better type inference for Actions
Sources & Further Reading
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdata/latest-react/SKILL.md
Popularity
- Repository stars
- 16
- Repository forks
- 4
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
contextCustom context provider definitions
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/majiayu000/claude-skill-registry-data/latest-react)