Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes related to "Your UI as a Tree" #6374

Merged
merged 3 commits into from
Oct 24, 2023
Merged

Conversation

smikitky
Copy link
Member

@smikitky smikitky commented Oct 24, 2023

This PR contains four small corrections related to the recently added "Your UI as a Tree" article.

  1. For consistency with other articles, I italicized the terms "Top-level components" and "leaf components" when they first appear.
  2. I aligned the usage of the <Diagram> tag with other articles. This isn't just an issue with the source file; this also inserts a <p> tag within the <figcaption>, improving visual consistency.
  3. As far as I can remember, the concept of "module dependency tree" has previously been referred to as "module graph" in the new React docs. For consistency, I modified the term "module graph" in a past article and added an appropriate link. The same phrase appears in this page, but I have left it unchanged since it's a blog article. Sorry I wasn't aware of 'use client' - flesh out usages and reference #6362
  4. Fixed a small typo (pases => passes).

By the way, I understand why a render tree is called a tree, but is a module dependency tree really a tree? Since exactly the same module can be referenced from multiple modules, I wonder if technically "graph" would be a more accurate term in this case...

@smikitky smikitky changed the title UI tree fixes Fixes related to "Your UI as a Tree" Oct 24, 2023
@github-actions
Copy link

github-actions bot commented Oct 24, 2023

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@lunaleaps
Copy link
Contributor

Thanks for the fixes, re: your 3rd point, I can see what you mean about graph vs. tree but I'd say the concept of a module dependency tree I'm trying to convey here is the module usage vs. the entity of the module. Happy to hear suggestions of how to clarify that given how we're explaining the concept of 'use client'

@lunaleaps lunaleaps merged commit bbdbaca into reactjs:main Oct 24, 2023
3 checks passed
@smikitky smikitky deleted the ui-tree-fixes branch October 25, 2023 01:45
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.

3 participants