Skip to content

[Suggestion]: App.js could be mentioned in the Clock.js example in Render And Commit #8094

@moijes12

Description

@moijes12

Summary

App.js could be mentioned in the Clock.js example in Render And Commit page

Page

https://react.dev/learn/render-and-commit

Details

The Render and Commit Page has a wonderful example on how the clock component is updated everytime the time changes. However, unlike other examples, this code section only has Clock.js and not the App.js present. I can understand that it may have been kept this way because the App.js code as seen in the sandbox uses useEffect and this may be new for the reader. Therefore, I suggest we add a note explaining why the App.js is not provided here and how that the reader may open the sandbox to see the code if they want to. Also, we should add the reader should not feel overwhelmed by the constructs used in App.js as they will be covered later. The intent here was only to provide an example of how the UI will render only updated components.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions