JH-Blog - +Notes
Book - Think Java
Object-oriented design and implementation
Web Browser Viewport
Image > 在移动端浏览器中以及某些桌面浏览器中，window对象有一个devicePixelRatio属性，它的官方的定义为：设备物理像素和设备独立像素的比例，也就是 devicePixelRatio = 物理像素 / 独立像素。
> Web Components provide strong encapsulation for reusable components, while React provides a declarative library that keeps the DOM in sync with your data.
This doc is mainly concerns Uncontrolled Components as Forms.
> `React.PropTypes` has moved into a different package since React v15.5 and should be used from `prop-types` library thereafter.
> StrictMode is a tool for highlighting potential problems in an application.
> Static type checkers like Flow and TypeScript identify certain types of problems before you even run your code. They can also improve developer workflow by adding features like auto-completion.
> The term “render prop” refers to a technique for sharing code between React components using a prop whose value is a function.
Web Browser Render Process
Image Image Image
Web Browser DOM Flickering Issue
Flickering is also referred to as Flash of original Content (or FOOC). It means that the user sees the original (control variation) before they see the modified version of your page.