Loading...
Loading...
Compare original and translation side by side
| Pattern | Action | Reference |
|---|---|---|
| → | See references/api-migrations.md |
| → | See references/api-migrations.md |
| → | Inline fix |
| → direct ref | Inline fix |
| → ref as direct prop | See references/api-migrations.md |
| → ES6 default params | See references/api-migrations.md |
| → | Inline fix add |
| Legacy Context | → | → api-migrations.md#legacy-context |
String refs | → | → api-migrations.md#string-refs |
| Remove | Only if no |
| 模式 | 操作 | 参考 |
|---|---|---|
| → | 见 references/api-migrations.md |
| → | 见 references/api-migrations.md |
| → | 内联修复 |
| → 直接使用ref | 内联修复 |
| → ref作为直接prop传递 | 见 references/api-migrations.md |
| → ES6 默认参数 | 见 references/api-migrations.md |
无参数的 | → | 内联修复,添加 |
| 旧版Context | → | → api-migrations.md#legacy-context |
字符串ref | → | → api-migrations.md#string-refs |
未使用的 | 移除 | 仅当文件中没有使用 |
.propTypesprop-types.propTypes// NOTE: React 19 no longer runs propTypes validation at runtime.
// PropTypes kept for documentation and IDE tooling only..propTypesprop-types.propTypes// NOTE: React 19 no longer runs propTypes validation at runtime.
// PropTypes kept for documentation and IDE tooling only.references/api-migrations.mdforwardRefuseImperativeHandledefaultPropsreferences/api-migrations.mdforwardRefuseImperativeHandledefaultProps