React 中文文档
Beta 版
首页学习API
  • 安装
    • 创建一个 React 新项目
    • 为网站添加 React
    • 设置编辑器
    • React 开发者工具
  • 快速入门
    • React 编程思想
  • 绘制用户界面(UI)
    • 编写你的第一个组件
    • 导入(import)和导出(export)组件
    • 利用 JSX 书写 Markup
    • 在 JSX 中利用花括号书写 JavaScript 代码
    • 向组件传递参数(Props)
    • 根据条件渲染组件
    • 渲染列表
    • 保持组件的功能单一
  • 添加交互
    • 响应事件
    • State: A Component's Memory
    • Render and Commit
    • State as a Snapshot
    • Queueing a Series of State Updates
    • Updating Objects in State
    • Updating Arrays in State
  • 管理状态
    • Reacting to Input with State
    • Choosing the State Structure
    • Sharing State Between Components
    • Preserving and Resetting State
    • Extracting State Logic into a Reducer
    • Passing Data Deeply with Context
    • Scaling Up with Reducer and Context
  • Escape Hatches
    • Referencing Values with Refs
    • Manipulating the DOM with Refs
学习 React

Escape Hatches

Advanced

This chapter is incomplete and is still being written!

PreviousScaling Up with Reducer and ContextNextReferencing Values with Refs

Open Source
©2022
学习 React
快速入门
安装
Describing the UI
Adding Interactivity
Managing State
Escape Hatches
API 参考手册
React APIs
React DOM APIs
社区
行为准则
致谢
开发团队
More
React Native
Privacy
Terms