Skillπ中文
THE SKILL DIRECTORY

Directory

Discover what agents can do. Explore the source, understand the instructions, and find a skill for your next task.

4 skills found · 类组件Clear filters ×
deepskillAuthorized

react18 legacy context

Provides the complete migration pattern for React legacy context API (contextTypes, childContextTypes, getChildContext) to the modern createContext API. Use this skill whenever mig

ai-labReactContext API代码迁移类组件跨文件前端开发
↓ 0👍 0
◇ Source evidence checked↗
deepskillAuthorized

React string refs migration for 18.3.1 / 19

Use documented class-component patterns to replace string refs and this.refs accesses with React.createRef().

ai-labReact字符串ref迁移助手React18createRef类组件JSX
↓ 0👍 0
◇ Source evidence checked↗
deepskillAuthorized

react18 batching patterns

Provides exact patterns for diagnosing and fixing automatic batching regressions in React 18 class components. Use this skill whenever a class component has multiple setState calls

ai-labReact18批处理类组件setStateflushSync异步更新状态管理
↓ 0👍 0
◇ Source evidence checked↗
deepskillAuthorized

react18 lifecycle patterns

Provides exact before/after migration patterns for the three unsafe class component lifecycle methods - componentWillMount, componentWillReceiveProps, and componentWillUpdate - tar

ai-labReact18生命周期组件迁移类组件getDerivedStateFromPropscomponentDidUpdategetSnapshotBeforeUpdate
↓ 0👍 0
◇ Source evidence checked↗