Skip to content

[Bug]: Incorrect statement referring to the output of the code #7494

Description

@Punith1117

Summary

The statement says the alert message always shows "Hello, !" but the message doesn't always show "Hello, !".

It simply shows the previous input as the current message with initial value set to ''. Therefore, the statement is incorrect.

Page

https://react.dev/learn/state-a-components-memory

Details

(The issue is a part of 4th challenge to try out)

Image

State_.A.Component.s.Memory.React.-.Opera.cropped.mp4

Activity

  1. Punith1117 commented on Feb 14, 2025

    @Punith1117
    ContributorAuthor

    I think the issue can be easily fixed by changing the wordings of the statement.

    I would like to work on this issue.

  2. rickhanlonii commented on Feb 18, 2025

    @rickhanlonii
    Member

    @Punith1117 agree it's confusion, feel free to suggest a fix

  3. Punith1117 commented on Feb 18, 2025

    @Punith1117
    ContributorAuthor

    @rickhanlonii Thanks for the clarification! I will make the necessary changes to the wording and create a PR with the fix. I'll get started on it shortly.

  4. Punith1117 commented on Feb 18, 2025

    @Punith1117
    ContributorAuthor

    @rickhanlonii I have created the pull request by rewording the output explanation. Could you please review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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