Closed Fawke closed 6 years ago
Please find the updated status:
Try to reduce the number of container classes by using containment/composition (Any example?) Refer to this article: https://reactjs.org/docs/composition-vs-inheritance.html
Let's say, you've got a component hierarchy like this,
<P>
<C>
<C1>
<C1>
<C/>
<P/>
you need to pass props from <P>
component to <C1/>
component, there are 2 ways to solve this problem, one way is to use connect and create container component for them, the other way is to use composition, then your structure would look something like this.
<P>
<C>
<C/>
<C1/>
<C1>
<P/>
althrough, there is nothing wrong in your approach, but we should know all different ways to solve a problem.
can you show me a screenshot of the error please?
Please find the updates:
Hi, you just need to close point 2 and 3, post that, you'll be marked as complete.
Hi Imran, please write unit test cases for all the React components.
Your deployed app on https://slack-chatkit.herokuapp.com/
is throwing an error.
This project is being marked as completed.