Skip to content

Rebeca's 2-1 in a PR#2

Open
riousenkai wants to merge 2 commits intomainfrom
lesson_2_1-fixed
Open

Rebeca's 2-1 in a PR#2
riousenkai wants to merge 2 commits intomainfrom
lesson_2_1-fixed

Conversation

@riousenkai
Copy link
Collaborator

No description provided.

@riousenkai riousenkai changed the title Rebeca's 2-1in a PR Rebeca's 2-1 in a PR Jan 17, 2024

handleInputChange(event) {
this.setState({ currentGuess: event.target.value });
function GuessControl() {
Copy link
Collaborator Author

@riousenkai riousenkai Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The game isn't working. What's missing here? Check line 47 of NumberGuessingGame.js

super(props);

this.state = {
const [ numberData, setNumberData ] = useState({
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should place each of these values in separate useStates. No need to force them in an object.

@riousenkai
Copy link
Collaborator Author

@rebs1203 - left some comments

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants