Skip to main content

277 docs tagged with "Web"

View all tags

Array

- 与 Object 同源.

Best Practices

如果将一个函数任意地将其放在 useEffect Deps List 中

Best Practices

- 区分 Smart Component (know the state) 和 Dump Component (stateless)

Context

Context provide a Dependency Injection style method,

Context

- Create custom XXXContextProvider:

CSS

Getting Started

Cypress

When it comes to test heavy visual features,

Destructuring

- 建议只要有可能, 就不要在模式中放置圆括号.

DOM

- DOM Level 0.

DOM

- 局部变量缓存 DOM 元素.

Event

- event.preventDefault().

Fetch

- GET: read resources.

Footer

- 如果页面内容不足够长时, 页脚固定在浏览器窗口的底部.

Generator

- 函数名称前面加一个星号 (*) 表示它是一个生成器函数.

Head

meta data list in

Hooks

React Hooks allow you to use state and other React features in functional components.

Images

- Responsive images with srcset (LCP):

Internals

- Reuse stateful logic between components

Media Query

- Logical operators + media types + media features.

Memo

- Returns a memoized value.

Message Queue

- 解耦: 客户端和服务端解耦, 都只需操作消息队列

Middleware

Redux middleware were designed to enable writing side effects logic:

Module

- CommonJS 模块在执行阶段同步加载子模块文件,

Nginx

Sites config located in /etc/nginx/sites-available:

Performance

- Normal React performance tips: React.memo, useMemo, useCallback etc.

Promise

Callback style asynchronous programming:

Reducer

- Use useState whenever manage a JS primitive (e.g. string, boolean, integer).

Redux

- Core - 核心概念、Store 创建与配置、State 管理(持久化、归一化)

Ref

Refs 用于返回对元素的引用.

Render

Reconciler construct Fiber tree:

Scheduler

Work loop in scheduler focus on Task Scheduling,

Security

These notes cover web security from principles to practical vulnerabilities,

State

- Read rendered props/state.

Symbol

- A Symbol is a unique and immutable primitive value

Table

`` 元素添加了以下属性和方法:

Update

Update and Update Queue:

Vue

These notes cover both Vue 2 (Options API) and Vue 3 (Composition API), including internal implementation details.

Web

Security Headers

Zero Trust

从防御的角度来讲, 内部风险是外部风险的超集: