Skip to main content

57 docs tagged with "React"

View all tags

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:

Hooks

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

Internals

- Reuse stateful logic between components

Memo

- Returns a memoized value.

Middleware

Redux middleware were designed to enable writing side effects logic:

Performance

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

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,

State

- Read rendered props/state.

Update

Update and Update Queue: