Skip to content

更换Code Splitting库 #7

Description

@dxx

react-loadable已经不维护了,目前最新版本使用了react遗留的 context API,还使用了一个即将在react17中移除的生命周期函数 componentWillMount,建议使用其它Code Splitting库比如loadable-components。React官方已经将loadable-components作为服务端Code Splitting推荐库 https://reactjs.org/docs/code-splitting.html#reactlazy

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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