Refactored `reactComponent` directive to uniform it with `reactDirective` implementation.