Skip to main content

254 docs tagged with "Web"

View all tags

Array

- 与 Object 同源.

Best Practices

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

Best Practices

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

Commit

Renderer and HostConfig Protocol

Context

- Create custom XXXContextProvider:

Design

CSS Framework Key Points

Form

Form Design Pattern:

Head

meta data list in

Hooks

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

Internals

- Reuse stateful logic between components

Math

Calculation Function

Memo

- Returns a memoized value.

Middleware

Redux middleware were designed to enable writing side effects logic:

Module

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

Nginx

- /etc/nginx/sites-available: sites config

Performance

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

PNPM

PNPM Installation

Promise

Callback style asynchronous programming:

PWA

Progressive Web Apps:

Query

Server State Management

Reducer

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

Redux

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

Refs

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,

SEO

Rendering Patterns

Session

Session Hijacking Protection

Shape

Pseudo Element Shape

State

- Read rendered props/state.

String

String Primitive Features

Symbol

- A Symbol is a unique and immutable primitive value

Testing

- Jest and Enzyme snapshots testing.

Types

- React TypeScript CheatSheet

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

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