Skip to content

Conversation

bastien-pruvost
Copy link
Contributor

React 19 modernization: ref as prop and improved structure

Related to #777

Key Changes

  • Prioritize React 19+ patterns: ref as prop approach now leads the forwardRef documentation
  • Clear version guidance: Separate sections for React 19+ vs legacy (≤18) approaches
  • Improved structure: Better organization and clearer headings
  • Cross-references: Better linking between related concepts

Files Modified

  • docs/basic/getting-started/forward-create-ref.md: Major restructure for React 19
  • docs/react-types/ComponentProps.md: Added version-specific guidance

Benefits

  • Developers using React 19+ get the modern patterns first
  • Legacy users still have clear guidance for older versions
  • Better discoverability and organization of advanced patterns

Copy link
Collaborator

@filiptammergard filiptammergard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@filiptammergard filiptammergard merged commit 25d30ac into typescript-cheatsheets:main Aug 23, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants