diff --git a/React 的源码深入/React 的流程解析 - Fiber 递归/React 的深入探索 - createWorkInProgress.md b/React 的源码深入/React 的流程解析 - Fiber 递归/React 的深入探索 - createWorkInProgress.md index ee6ef20..addcc9f 100644 --- a/React 的源码深入/React 的流程解析 - Fiber 递归/React 的深入探索 - createWorkInProgress.md +++ b/React 的源码深入/React 的流程解析 - Fiber 递归/React 的深入探索 - createWorkInProgress.md @@ -61,15 +61,15 @@ switch (workInProgress.tag) { case FunctionComponent: case SimpleMemoComponent: workInProgress.type = resolveFunctionForHotReloading(current.type); - break; + break; case ClassComponent: workInProgress.type = resolveClassForHotReloading(current.type); break; -case ForwardRef: -workInProgress.type = resolveForwardRefForHotReloading(current.type); -break; + case ForwardRef: + workInProgress.type = resolveForwardRefForHotReloading(current.type); + break; } ```