Skip to content

React18 legacy context vs React19 source patterns

React18 legacy context is an open-source agent skill for developer tools. React19 source patterns is an open-source agent skill for developer tools.

  • React18 legacy context is best for migrate a theme context from legacy contexttypes to createcontext.
  • React19 source patterns is best for migrate a legacy reactdom.render entry point to createroot.
What it is
React18 legacy context is an open-source agent skill for developer tools.
React19 source patterns is an open-source agent skill for developer tools.
Best for
Migrate a theme context from legacy contextTypes to createContext
Migrate a legacy ReactDOM.render entry point to createRoot
Kind
Skill
Skill
Pricing
Open source
Open source
Platforms
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
GitHub stars
41.3K
41.3K
Last commit
Nov 2026
Nov 2026
License
MIT
MIT
Open source
Good for
Migrate a theme context from legacy contextTypes to createContext; Convert a class component consumer to use contextType; Update an auth provider and all its consumers to the modern context API
Migrate a legacy ReactDOM.render entry point to createRoot; Replace string refs with createRef across a component codebase; Convert defaultProps to default parameters in function components

What React18 legacy context does

  • Ordered migration workflow

    A six-step sequence covering discovery, the new context file, provider update, consumer updates and verification.

  • Provider and consumer search

    Grep commands that locate childContextTypes, getChildContext, contextTypes and this.context usage in source files.

  • Class and function consumer conversion

    Guidance for switching class components to contextType and function components to useContext.

  • Single and multi-context references

    Separate reference guides for migrating one legacy context or several nested contexts.

  • Context module template

    A reference template defining the standard file structure for a new context module.

What React19 source patterns does

  • Deprecated API replacements

    Maps removed React APIs such as ReactDOM.render and findDOMNode to their React 19 equivalents.

  • Ref handling updates

    Covers moving from forwardRef wrappers and string refs to ref props and createRef.

  • Context migration

    Explains replacing legacy context with createContext, including cross-file provider and consumer changes.

  • defaultProps conversion

    Describes replacing component defaultProps with ES6 default parameters and their edge cases.

  • PropTypes handling

    Keeps propTypes assignments and adds a comment noting they are no longer checked at runtime.

  • Unused React import cleanup

    Removes unused React default imports only when the file has no React. references.

React18 legacy context vs React19 source patterns: questions

Is React18 legacy context or React19 source patterns cheaper?

Both are open source. Compare current plans on each official site.

What is the difference between React18 legacy context and React19 source patterns?

React18 legacy context is an open-source agent skill for developer tools. React19 source patterns is an open-source agent skill for developer tools.

Keep comparing