Skip to content

docs: fix JSX syntax error and component props in layout-measurements.md - #5352

Merged
Simek merged 1 commit into
react:mainfrom
supunyasanthaofficial:fix/layout-measurements-jsx-syntax
Nov 30, 2026
Merged

Simek merged 1 commit into
react:mainfrom
supunyasanthaofficial:fix/layout-measurements-jsx-syntax

Conversation

@supunyasanthaofficial

Copy link
Copy Markdown
Contributor

Summary

Fixed a couple of issues in the code example in docs/the-new-architecture/layout-measurements.md.

Changes

  • Fixed the JSX closing tag for <View ref={targetRef}>.
  • Updated AComponent to destructure children from its props instead of using the entire props object.
  • Ran the snippet through Prettier and ESLint to match the repository's formatting rules.

Test Plan

  • npx eslint docs/the-new-architecture/layout-measurements.md passed with no errors.
  • Built the Docusaurus docs successfully.

@meta-cla meta-cla Bot added the CLA Signed label Nov 26, 2026

@Simek Simek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the correction! 👍

@Simek
Simek merged commit 4385e02 into react:main Nov 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants