美文网首页
React优秀文章

React优秀文章

作者: LeeYaMaster | 来源:发表于2021-03-18 15:47 被阅读0次
好文章:
  1. hook的使用(hook与class的区别):https://www.jianshu.com/p/aafccf6e9ad6
  2. redux的使用(创建四个文件及步骤):https://blog.csdn.net/qq_40816649/article/details/89959985
  3. redux的使用(比上一篇文章,目录结构好):https://zhuanlan.zhihu.com/p/49102490
  4. redux的使用(这篇文章偏大型项目):https://zhuanlan.zhihu.com/p/148534833
  5. antd+next+redux配置的博客:https://blog.csdn.net/qq_35087256/article/details/86025356
  6. 我买了慕课网的课程https://coding.imooc.com/class/334.html,课程里有个人写了一篇专门针对这项目的博客,也是我写项目最终选择的一篇:https://cloud.tencent.com/developer/article/1612742
  7. next中文网:https://nextjs.frontendx.cn/docs/#路由
    https://www.nextjs.cn/docs/authentication
  8. markdown中文网:https://markdown-it.docschina.org/#用法示例
踩的坑:
  1. 我使用antd+next+redux踩的坑:https://www.jianshu.com/p/76b7d8323323
  2. next配置antd的时候
 "plugins": [
    //  增加新的插件,这个插件就是让antd可以按需引入,包括CSS
    [
      "import",
      {
        "libraryName": "antd",
        //"style":"css"   webpack语法报错 引入css
      }
    ]
  ]

这里我没使用上面的方法,装了下webpack项目可以运行了,莫名其妙就解决了。

  1. webpack打包时错误Cannot find module 'webpack/lib/node/NodeTemplatePlugin'
  2. webstorm 底部一直在闪烁显示indexing
    解决方法:
    选择 File->Invalidate Caches / Restart...->Invalidate and Restart
  3. store.getstate is not a function
    解决方法:
    https://stackoverflow.com/questions/32879588/uncaught-typeerror-store-getstate-is-not-a-function
  4. 配置markdown编辑器
    https://www.jianshu.com/p/32ee64b97289?open_source=weibo_search
    https://github.com/HarryChen0506/react-markdown-editor-lite
    https://harrychen0506.github.io/react-markdown-editor-lite/

相关文章

网友评论

      本文标题:React优秀文章

      本文链接:https://www.haomeiwen.com/subject/kvjbqltx.html