|
8 | 8 | "path": "", |
9 | 9 | "routes": [ |
10 | 10 | { |
11 | | - "title": "Installation", |
| 11 | + "title": "安装", |
12 | 12 | "path": "/learn/installation", |
13 | 13 | "routes": [ |
14 | 14 | { |
15 | | - "title": "Start a New React Project", |
| 15 | + "title": "开始一个新的 React 项目", |
16 | 16 | "path": "/learn/start-a-new-react-project" |
17 | 17 | }, |
18 | 18 | { |
19 | | - "title": "Add React to a Website", |
| 19 | + "title": "将 React 添加到网站中", |
20 | 20 | "path": "/learn/add-react-to-a-website" |
21 | 21 | }, |
22 | 22 | { |
23 | | - "title": "Editor Setup", |
| 23 | + "title": "编辑器配置", |
24 | 24 | "path": "/learn/editor-setup" |
25 | 25 | }, |
26 | 26 | { |
|
30 | 30 | ] |
31 | 31 | }, |
32 | 32 | { |
33 | | - "title": "Quick Start", |
| 33 | + "title": "快速入门", |
34 | 34 | "path": "/learn", |
35 | 35 | "routes": [{ |
36 | | - "title": "Thinking in React", |
| 36 | + "title": "React 哲学", |
37 | 37 | "path": "/learn/thinking-in-react" |
38 | 38 | }] |
39 | 39 | }, |
40 | 40 | { |
41 | | - "title": "Describing the UI", |
| 41 | + "title": "描述 UI", |
42 | 42 | "tags": [], |
43 | 43 | "path": "/learn/describing-the-ui", |
44 | 44 | "routes": [ |
45 | 45 | { |
46 | | - "title": "Your First Component", |
| 46 | + "title": "第一个组件", |
47 | 47 | "path": "/learn/your-first-component" |
48 | 48 | }, |
49 | 49 | { |
50 | | - "title": "Importing and Exporting Components", |
| 50 | + "title": "组件的导入与导出", |
51 | 51 | "path": "/learn/importing-and-exporting-components" |
52 | 52 | }, |
53 | 53 | { |
54 | | - "title": "Writing Markup with JSX", |
| 54 | + "title": "使用 JSX 编写标记", |
55 | 55 | "path": "/learn/writing-markup-with-jsx" |
56 | 56 | }, |
57 | 57 | { |
58 | | - "title": "JavaScript in JSX with Curly Braces", |
| 58 | + "title": "在 JSX 中通过大括号使用 JavaScript", |
59 | 59 | "path": "/learn/javascript-in-jsx-with-curly-braces" |
60 | 60 | }, |
61 | 61 | { |
62 | | - "title": "Passing Props to a Component", |
| 62 | + "title": "将 prop 传递给组件", |
63 | 63 | "path": "/learn/passing-props-to-a-component" |
64 | 64 | }, |
65 | 65 | { |
66 | | - "title": "Conditional Rendering", |
| 66 | + "title": "条件渲染", |
67 | 67 | "path": "/learn/conditional-rendering" |
68 | 68 | }, |
69 | 69 | { |
70 | | - "title": "Rendering Lists", |
| 70 | + "title": "列表渲染", |
71 | 71 | "path": "/learn/rendering-lists" |
72 | 72 | }, |
73 | 73 | { |
74 | | - "title": "Keeping Components Pure", |
| 74 | + "title": "保持组件纯粹", |
75 | 75 | "path": "/learn/keeping-components-pure" |
76 | 76 | } |
77 | 77 | ] |
78 | 78 | }, |
79 | 79 | { |
80 | | - "title": "Adding Interactivity", |
| 80 | + "title": "增加互动性", |
81 | 81 | "path": "/learn/adding-interactivity", |
82 | 82 | "tags": [], |
83 | 83 | "routes": [ |
84 | 84 | { |
85 | | - "title": "Responding to Events", |
| 85 | + "title": "响应事件", |
86 | 86 | "path": "/learn/responding-to-events" |
87 | 87 | }, |
88 | 88 | { |
89 | | - "title": "State: A Component's Memory", |
| 89 | + "title": "state:组件的缓存", |
90 | 90 | "path": "/learn/state-a-components-memory" |
91 | 91 | }, |
92 | 92 | { |
93 | | - "title": "Render and Commit", |
| 93 | + "title": "render 和 commit", |
94 | 94 | "path": "/learn/render-and-commit" |
95 | 95 | }, |
96 | 96 | { |
97 | | - "title": "State as a Snapshot", |
| 97 | + "title": "state 作为快照", |
98 | 98 | "path": "/learn/state-as-a-snapshot" |
99 | 99 | }, |
100 | 100 | { |
101 | | - "title": "Queueing a Series of State Updates", |
| 101 | + "title": "state 的更新队列", |
102 | 102 | "path": "/learn/queueing-a-series-of-state-updates" |
103 | 103 | }, |
104 | 104 | { |
105 | | - "title": "Updating Objects in State", |
| 105 | + "title": "更新 state 中的对象", |
106 | 106 | "path": "/learn/updating-objects-in-state" |
107 | 107 | }, |
108 | 108 | { |
109 | | - "title": "Updating Arrays in State", |
| 109 | + "title": "更新 state 中的数组", |
110 | 110 | "path": "/learn/updating-arrays-in-state" |
111 | 111 | } |
112 | 112 | ] |
113 | 113 | }, |
114 | 114 | { |
115 | | - "title": "Managing State", |
| 115 | + "title": "管理 state", |
116 | 116 | "path": "/learn/managing-state", |
117 | 117 | "tags": [ |
118 | 118 | "intermediate" |
119 | 119 | ], |
120 | 120 | "routes": [ |
121 | 121 | { |
122 | | - "title": "Reacting to Input with State", |
| 122 | + "title": "用 state 响应输入", |
123 | 123 | "path": "/learn/reacting-to-input-with-state" |
124 | 124 | }, |
125 | 125 | { |
126 | | - "title": "Choosing the State Structure", |
| 126 | + "title": "选择 state 的结构", |
127 | 127 | "path": "/learn/choosing-the-state-structure" |
128 | 128 | }, |
129 | 129 | { |
130 | | - "title": "Sharing State Between Components", |
| 130 | + "title": "组件间共享状态", |
131 | 131 | "path": "/learn/sharing-state-between-components" |
132 | 132 | }, |
133 | 133 | { |
134 | | - "title": "Preserving and Resetting State", |
| 134 | + "title": "state 的保存和重置", |
135 | 135 | "path": "/learn/preserving-and-resetting-state" |
136 | 136 | }, |
137 | 137 | { |
138 | | - "title": "Extracting State Logic into a Reducer", |
| 138 | + "title": "将 state 逻辑提取到 reducer 中", |
139 | 139 | "path": "/learn/extracting-state-logic-into-a-reducer" |
140 | 140 | }, |
141 | 141 | { |
142 | | - "title": "Passing Data Deeply with Context", |
| 142 | + "title": "使用 context 深度传递数据", |
143 | 143 | "path": "/learn/passing-data-deeply-with-context" |
144 | 144 | }, |
145 | 145 | { |
146 | | - "title": "Scaling Up with Reducer and Context", |
| 146 | + "title": "利用 reducer 和 context 扩展应用", |
147 | 147 | "path": "/learn/scaling-up-with-reducer-and-context" |
148 | 148 | } |
149 | 149 | ] |
150 | 150 | }, |
151 | 151 | { |
152 | | - "title": "Escape Hatches", |
| 152 | + "title": "备选方案", |
153 | 153 | "path": "/learn/escape-hatches", |
154 | 154 | "tags": [ |
155 | 155 | "advanced" |
156 | 156 | ], |
157 | 157 | "routes": [ |
158 | 158 | { |
159 | | - "title": "Referencing Values with Refs", |
| 159 | + "title": "用 ref 引用数值", |
160 | 160 | "path": "/learn/referencing-values-with-refs" |
161 | 161 | }, |
162 | 162 | { |
163 | | - "title": "Manipulating the DOM with Refs", |
| 163 | + "title": "用 ref 操作 DOM", |
164 | 164 | "path": "/learn/manipulating-the-dom-with-refs" |
165 | 165 | } |
166 | 166 | ] |
|
0 commit comments