React-Refresh使用心得

安装步骤

  1. 安装react-refresh[1]和@pmmmwh/react-refresh-webpack-plugin[2]

    npm install -D @pmmmwh/react-refresh-webpack-plugin react-refresh

    2.安装react-refresh/babel

    npm install -D react-refresh/babel

Note:
[1]react-refresh: basic tooling needed support React Fast Refresh
[2]和@pmmmwh/react-refresh-webpack-plugin: Webpack plugin needed to enable react-refresh.


等我在项目里面实践之后,稍后在更

评论

暂无评论