Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Mn 2019 10 combine speakup components #1111

Merged
merged 6 commits into from
Oct 22, 2019

Conversation

MagdaN
Copy link
Contributor

@MagdaN MagdaN commented Oct 22, 2019

We had two react components (QuestionsBox, StatisticsBox) on the same page pulling pretty exactly the same data from the same API-Endpoint. I moved the StatisticBox into the QuestionsBox and made the QuestionsBox pulling and preparing the data for the StatisticsBox. The StatisticsBox now receives the data via props.

Magdalena Noffke added 6 commits October 22, 2019 15:56
As this component will get its listitems now from the surrounding
component as props, everything that is needed for pulling data from the
API can be removed
after removing the fetch-questions-from-API functionality from the
Statistics component the QuestionBox Component has to take care of
sending the right data to it's new ChildComponent (the StatisticsBox)
@MagdaN MagdaN force-pushed the mn-2019-10-combine-speakup-components branch from deb9325 to a8afdf8 Compare October 22, 2019 13:57
Copy link
Contributor

@fuzzylogic2000 fuzzylogic2000 left a comment

Choose a reason for hiding this comment

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

Very nice!

@fuzzylogic2000 fuzzylogic2000 merged commit 2a63793 into master Oct 22, 2019
@fuzzylogic2000 fuzzylogic2000 deleted the mn-2019-10-combine-speakup-components branch October 22, 2019 14:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants