静水流深

非淡泊无以明志,非宁静无以致远


  • 首页

  • 分类

  • 归档

  • 标签

  • 搜索

Composition vs Inheritance(组合与继承)

发表于 2017-04-07 | 分类于 react | 阅读次数
React has a powerful composition model, and we recommend using composition instead of inheritance to reuse code between components. React具有强大的组合模型,我们建 ...
阅读全文 »

Lifting State Up(提升状态)

发表于 2017-04-06 | 分类于 react | 阅读次数
Often, several components need to reflect the same changing data. We recommend lifting the shared state up to their closest common ancestor. Let’s see ...
阅读全文 »

Forms(表单)

发表于 2017-04-05 | 分类于 react | 阅读次数
HTML form elements work a little bit differently from other DOM elements in React, because form elements naturally keep some internal state. For examp ...
阅读全文 »

Lists and Keys(列表和键)

发表于 2017-04-04 | 分类于 react | 阅读次数
First, let’s review how you transform lists in JavaScript. 首先,我们来看看如何在JavaScript中转换列表。 Given the code below, we use the map() function to take an arra ...
阅读全文 »

Conditional Rendering(条件渲染)

发表于 2017-04-03 | 分类于 react | 阅读次数
In React, you can create distinct components that encapsulate behavior you need. Then, you can render only some of them, depending on the state of you ...
阅读全文 »

Handling Events(处理事件)

发表于 2017-04-02 | 分类于 react | 阅读次数
Handling events with React elements is very similar to handling events on DOM elements. There are some syntactic differences: 使用React元素处理事件与处理DOM元素上的事 ...
阅读全文 »

State and Lifecycle(状态和生命周期)

发表于 2017-04-01 | 分类于 react | 阅读次数
Consider the ticking clock example from one of the previous sections. 考虑上一节的秒表时钟示例。 So far we have only learned one way to update the UI. 到目前为止,我们只学到了 ...
阅读全文 »

Components and Props(组件和属性)

发表于 2017-03-31 | 分类于 react | 阅读次数
Components let you split the UI into independent, reusable pieces, and think about each piece in isolation. 组件让您将UI拆分成独立的可重复使用的部分,并单独考虑重复每个部分。 Concept ...
阅读全文 »

Rendering Elements(渲染组件)

发表于 2017-03-30 | 分类于 react | 阅读次数
Elements are the smallest building blocks of React apps. 元素是React应用程序中最小的构建块。 An element describes what you want to see on the screen: 一个元素描述您想要在屏幕上看到 ...
阅读全文 »

Introducing JSX(JSX介绍)

发表于 2017-03-29 | 分类于 react | 阅读次数
Consider this variable declaration: 考虑这个变量声明: 1const element = <h1>Hello, world!</h1>; This funny tag syntax is neither a string nor HTML. ...
阅读全文 »
1…567…9
William-Dream

William-Dream

为了梦-追梦,我的英文名由此而来

83 日志
13 分类
2 标签
RSS
GitHub
Links
  • Net
© 2015 - 2020 William-Dream
由 Hexo 强力驱动
主题 - NexT.Mist