Skip to content

Space - Faezeh#22

Open
faezeh-ashtiani wants to merge 6 commits intoAda-C13:masterfrom
faezeh-ashtiani:master
Open

Space - Faezeh#22
faezeh-ashtiani wants to merge 6 commits intoAda-C13:masterfrom
faezeh-ashtiani:master

Conversation

@faezeh-ashtiani
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 value of a variable, that lives in a component and we have access to changing it. we use the method useState from the React library that gives us back an array holding a value (of the state variable) and a method for changing it. we usually use it by destructuring it into an array holding the variable that the value can be assigned to and a method callback name. const [variable, setNewValueInVariable] = React.useState(value)
Describe the relationships between the components on a high-level: which components were siblings? Which components were nested within each other? all three of the components PlayerSubmissionForm, FinalPoem and RecentSubmission were siblings and all were children of Game component.
How did this project differ from in-class examples? in this exercise, we needed to decide where to handle the data set, and how to toggle between what is being displayed at what time.
How was this project similar to in-class examples? the form we developed had a lot of similarities to what we had practiced in class.

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.

1 participant