Skip to content

纯函数,纯hook的组件使用中遇到问题 #27

@X-neuron

Description

@X-neuron

https://github.com/X-neuron/antdFront
纯函数,纯hook的组件,我们用react hot loader 在代码分割时,热重载不行..,上了你的配置后,代码分割,登陆前热更新有效果,点击登陆,挂了。
是不是编译默认配置的问题?

react-hot-loader.development.js:25 Uncaught TypeError: Cannot call a class as a function
    at classCallCheck (react-hot-loader.development.js:25)
    at HotExporteduseAppRoute (react-hot-loader.development.js:3155)
    at Object.useTabRoute [as hook] (useTabRoute.js:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions