Skip to content

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

Open
supunyasanthaofficial wants to merge 1 commit into
react:mainfrom
supunyasanthaofficial:fix/layout-measurements-jsx-syntax
Open

supunyasanthaofficial wants to merge 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

This branch has not been deployed

No deployments
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.

1 participant