Today, we’re going to do more complicated things. We will go away from the manual description of “closure,” subscriptions, and so on. All these things are, of course, not for manual maintenance. We will learn how to do these things easily and gracefully.
Let us continue our conversation about React infrastructure. But first, let us change our structure a little bit and move our Article component to a separate directory Article. So, let us create it. Change our component’s name to Index.js and add the following code:
As we saw in the previous article, decorators are just the Higher-Order components that add extra functionality to the passed component and return a new enhanced component. Before we get to our homework, let's dive deep and understand how decorators and mixins work.