4 Matching Annotations
  1. Last 7 days
  2. Jun 2020
  3. Nov 2019
    1. However, again you would have to lift state up to the App component in order to pass the amount to the currency components. As you can see, the component composition on its own doesn't help us to solve the problem. That's the point where React's render props pattern comes into play which enhances React's component composition with an important ingredient: a render function.
    2. But it's not that simple, because the currency components don't know about the amount now. You would have to lift the state from the Amount component to the App component.