Skip to content

NameOutput component  #27

@LaLeonie

Description

@LaLeonie

We'd suggest improving the naming of the states in this file. oneName is a bit confusing because it's an array and name is confusing as it's a string of multiple names.

Our suggestion to implement the functionality of changing the name when the user clicks Next Player:

  • Create another state for the array index, for instance [playerId, setPlayerId]
  • Add an onlick to the Next Player button along the lines of setPlayerId(function to create random number)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions