Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alice B. - Earth #27

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Alice B. - Earth #27

wants to merge 13 commits into from

Conversation

aliceboone
Copy link

Assignment Submission: Exquisite React

Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.

Reflection

Prompt Response
Define in your own words: What does "state" in React mean? How do we use it? State is an object that stores a component's dynamic data and determines how it behave, it is used within a class component.

Describe the relationships between the components on a high-level: which components were siblings? Which components were nested within each other? | Game was nested in the app, the other components were nested inside Game and were all siblings of each other.

How did this project differ from in-class examples? | All three sibling components needed access to some of state that was inside Game.

How was this project similar to in-class examples? | Using state and props are similar.

Copy link

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

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

Well done Alice you hit the learning goals here. Well done. You have a very functional Exquisite Corpse game and made all the tests pass.

Comment on lines +22 to +28
const formatLine = FIELDS.map((field) => {
if (field.key) {
return line[field.key];
} else {
return field;
}
}).join(' ');

Choose a reason for hiding this comment

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

Everything in here should have a key as well.

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