{"pageContext":{"index":79,"total":362,"name":"2020-11-08","items":[{"node":{"frontmatter":{"title":"React Hook最佳实践","publish":true,"cover":"","showCover":true,"date":"2020-11-08","category":"frontend","url":"https://blog.bitsrc.io/best-practices-with-react-hooks-69d7e4af69a7","author":"Nathan Sebhastian","translator":"","tags":["react"],"priority":1},"html":"<ul>\n<li>不要在循环，判断，嵌套中使用hook,只在顶层使用hook</li>\n<li>只在函数组件里使用hook</li>\n<li>使用<a href=\"https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks\">eslint-plugin-react-hooks</a>校验</li>\n<li>按照state,effect,render的顺序编排代码</li>\n<li>每个useState尽量只针对一个变量，而不要整合多个数据</li>\n<li>使用自定义hook重用业务逻辑</li>\n<li>使用useContext避免属性传递Prop drilling</li>\n</ul>"}},{"node":{"frontmatter":{"title":"BBC开源React SPA框架simorg,支持SSR","publish":true,"cover":"","showCover":true,"date":"2020-11-08","category":"frontend","url":"https://github.com/bbc/simorgh","author":"BBC","translator":"","tags":["react"],"priority":1},"html":""}},{"node":{"frontmatter":{"title":"aws-sam-cli 支持本地测试AWS Lambda","publish":true,"cover":"","showCover":true,"date":"2020-11-08","category":"nodejs","url":"https://github.com/aws/aws-sam-cli","author":"AWS","translator":"","tags":["lambda"],"priority":1},"html":""}},{"node":{"frontmatter":{"title":"cheat.sh 命令行速查手册","publish":true,"cover":"https://camo.githubusercontent.com/e1669c0034f4386c8fb0d388839831afb6d93e13/687474703a2f2f63686561742e73682f66696c65732f6269672d6c6f676f2d76322d66697865642e706e67","showCover":true,"date":"2020-11-08","category":"devops","url":"https://github.com/chubin/cheat.sh","author":"Igor Chubin","translator":"","tags":["shell"],"priority":2},"html":""}},{"node":{"frontmatter":{"title":"gron - 将json变为js赋值语句","publish":true,"cover":"","showCover":true,"date":"2020-11-08","category":"javascript","url":"https://github.com/tomnomnom/gron","author":"Tom Hudson","translator":"","tags":["json"],"priority":1},"html":""}},{"node":{"frontmatter":{"title":"globe - 可互动ascii码地球仪","publish":true,"cover":"https://github.com/adamsky/globe/raw/master/.github/earth_dragging.gif","showCover":true,"date":"2020-11-08","category":"other","url":"https://github.com/adamsky/globe","author":"crab rave","translator":"","tags":["ascii"],"priority":2},"html":""}},{"node":{"frontmatter":{"title":"node-sendmail 不需要stmp服务器发邮件","publish":true,"cover":"","showCover":true,"date":"2020-11-08","category":"nodejs","url":"https://github.com/guileen/node-sendmail","author":"BBC","translator":"","tags":["react"],"priority":1},"html":""}},{"node":{"frontmatter":{"title":"react-ace 代码编辑器ACE的React封装","publish":true,"cover":"","showCover":true,"date":"2020-11-08","category":"frontend","url":"https://github.com/securingsincity/react-ace","author":"James Hrisho","translator":"","tags":["react"],"priority":1},"html":""}},{"node":{"frontmatter":{"title":"ripgrep - 本地代码搜索工具","publish":true,"cover":"","showCover":true,"date":"2020-11-08","category":"devops","url":"https://github.com/BurntSushi/ripgrep","author":"Andrew Gallant","translator":"","tags":["search"],"priority":1},"html":""}},{"node":{"frontmatter":{"title":"wtfjs - javascript蹊跷集合","publish":true,"cover":"https://camo.githubusercontent.com/2d9296d25903d3074e3e667e2c351319007412fe/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f657438784e4163326963382f302e6a7067","showCover":true,"date":"2020-11-08","category":"javascript","url":"https://github.com/denysdovhan/wtfjs","author":"Denys Dovhan","translator":"","tags":["javascript"],"priority":1},"html":""}},{"node":{"frontmatter":{"title":"键盘内置单板机：树莓派基金会推出小巧可爱的Raspberry Pi 400","publish":true,"cover":"https://static.cnbetacdn.com/article/2020/1102/9f4e1b5686d94fe.jpeg","showCover":true,"date":"2020-11-08","category":"hardware","url":"https://www.cnbeta.com/articles/tech/1048213.htm","author":"cnBeta.COM","translator":"","tags":["react"],"priority":1},"html":""}},{"node":{"frontmatter":{"title":"想让你的文章出现在这里？","publish":true,"cover":"","showCover":true,"date":"2020-10-03","category":"frontend","url":"mailto:editor@zhouexin.com?subject=投稿!","author":"投稿","translator":"","tags":["editor"],"priority":1},"html":""}}]}}