kpc icon indicating copy to clipboard operation
kpc copied to clipboard

[React] react-hot-loader会导致组件类型判断失败

Open Javey opened this issue 5 years ago • 0 comments

CodeSandbox

Description

Step 3 (of 3): Adding React Hot Loader to preserve component state

当使用react-hot-loader保持组件状态时,由于它会包装原始组件,返回ProxyComponent,会导致内部判断组件类型失败

Javey avatar Nov 07 '19 07:11 Javey