React
Articles filed under React.
6 articles
深入浅出前端测试 —— Jest
当我第一次听说 TDD (Test-Driven Develop, 测试驱动开发) 的时候,我首先想到的是测试小姐姐们想搞事情?后面发现这个玩意儿是想干掉测试。那好,下面我们开始从简单的单元测试上手 Jest 测试框架。
Build your own "redux" from scratch
Redux is probably a buzz word that slips into the lingo of React developers. If your reaction has been like mine, it’s always been one of those things where I didn’t know much about it other than this official definition. I never could answer: “Why should I use Redux?”
Start testing your react app
When I first started learning to test my apps back in the day, I would get very frustrated with the different types, styles and technologies used for testing, along with the disbanded array of blog posts, tutorials and articles. I found this to be true as well for React testing.
React Diff 原理
跟 Vue 一致,React 通过引入 Virtual DOM 的概念,极大地避免无效的 Dom 操作,使我们的页面的构建效率提到了极大的提升。而 diff 算法就是更高效地通过对比新旧 Virtual DOM 来找出真正的 Dom 变化之处。
初识 React Fiber
React Fiber 是 Facebook 花费两年余时间对 React 做出的一个重大改变与优化,是对 React 核心算法的一次重新实现。从Facebook在 React Conf 2017 会议上确认,React Fiber 在React 16 版本发布