From 402f378917a8e8262a650c6fdd505c20ee9e3332 Mon Sep 17 00:00:00 2001 From: Cygra Date: Fri, 29 Mar 2019 17:33:40 +0800 Subject: [PATCH] fix blank line @217 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index af5aaab6..03c034de 100644 --- a/README.md +++ b/README.md @@ -3839,6 +3839,7 @@ 217. ### What are HOC factory implementations? There are two main ways of implementing HOCs in React. 1. Props Proxy (PP) and 2. Inheritance Inversion (II). They follow different approaches for manipulating the *WrappedComponent*. + **Props Proxy** In this approach, the render method of the HOC returns a React Element of the type of the WrappedComponent. We also pass through the props that the HOC receives, hence the name **Props Proxy**. @@ -3854,6 +3855,7 @@ } ``` **Inheritance Inversion** + In this approach, the returned HOC class (Enhancer) extends the WrappedComponent. It is called Inheritance Inversion because instead of the WrappedComponent extending some Enhancer class, it is passively extended by the Enhancer. In this way the relationship between them seems **inverse**. ```jsx