Skip to content

link counter and button with a useState #2

@artemfm1

Description

@artemfm1

PROJECT ISSUE TICKET

Unexpected Behavior

I have a button component and a counter component built out. Im having an issue connecting it to the use state so that it saves the value after refresh.

Expected Behavior

I would like the button to increment a count when clicked and that value remain on the screen after reload

Reproduce the Error

No exact errror, just need some help on the logic.

Documentation

na/

Copy and paste the contents of the error message here.

Attempted Resolution

I tried building out both components. Just need to link them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions