Skip to content

Pine - Tori D.#63

Open
VictoriaDuke wants to merge 2 commits intoAda-C16:mainfrom
VictoriaDuke:main
Open

Pine - Tori D.#63
VictoriaDuke wants to merge 2 commits intoAda-C16:mainfrom
VictoriaDuke:main

Conversation

@VictoriaDuke
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@jbieniosek jbieniosek left a comment

Choose a reason for hiding this comment

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

Great work on Wave 1 Tori! There was no formal LP for this project, but with wave 1 working and wave 2 started and considering the surrounding circumstances I am going to mark this as yellow. However, I recommend coming back to this project at the beginning of Capstone and working through the click callback code as a way to prep for Capstone.

Comment thread src/components/Board.js
// of square components

}
const arr1d = [].concat.apply([], squares);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Neat solution!

Comment thread src/components/Board.js
Comment on lines +12 to +19
return arr1d.map((square) => (
<Square
key={square.id}
value={square.value}
onClickCallback={onClickCallback}
></Square>
));
};
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread src/App.js
// You will need to create a method to change the square
// When it is clicked on.
// Then pass it into the squares as a callback
const newSquares = squares.map((square) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This section of code isn't working because squares is a 2D array. In this case there may be a way to get map to work (perhaps by nesting) but I recommend a nested for loop.

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