美文网首页
3.0 Rendering Elements 渲染元素

3.0 Rendering Elements 渲染元素

作者: 人头原子弹 | 来源:发表于2017-03-26 10:35 被阅读0次

Elements are the smallest building blocks of React apps.

元素是构建React应用的最小块。

An element describes what you want to see on the screen:

一个元素描述你想在屏幕上展示什么:

const element = <h1>Hello, world</h1>;

Unlike browser DOM elements, React elements are plain objects, and are cheap to create. React DOM takes care of updating the DOM to match the React elements.

不像浏览器的DOM元素,React元素是纯粹的对象,并且方便创建。React DOM 专注于更新DOM以匹配React元素。

Note:
One might confuse elements with a more widely known concept of "components". We will introduce components in the next section. Elements are what components are "made of", and we encourage you to read this section before jumping ahead.
注意:
人们可能将元素与更广为人知的“组件”概念混淆。我们将在下一节中介绍组件。组件是怎么由元素组成的,我们鼓励您在向前跳过之前阅读此部分。

相关文章

  • 3.0 Rendering Elements 渲染元素

    Elements are the smallest building blocks of React apps. ...

  • 翻译练习 react-Rendering Elements

    Rendering Elements渲染组件 Elements are the smallest building...

  • 2.Rendering Elements(渲染元素)

    React版本:15.4.2**翻译:xiyoki ** 元素是React应用程序最小的构建块。元素描述了你想在屏...

  • React 学习笔记(二)

    Learn from React 官方文档 一、Rendering Elements 1. Rendering a...

  • 离屏渲染

    On-Screen Rendering Off-Screen Rendering 界面的渲染过程 渲染过程: 如何...

  • test

    Enzyme Shallow Rendering - 不会渲染子组件DOM Rendering - 渲染子组件 U...

  • 离屏渲染

    On-Screen Rendering 在屏渲染 Off——Screen Rendering 离屏渲染 当我们设置...

  • 渲染 Rendering

    在进行iOS的性能优化中,会碰到卡顿的问题,虽然iOS设备的性能越来越高,但是卡顿的问题还是有可能会出现,而离屏渲...

  • React JSX / Rendering Elements

    https://codepen.io/React 元素是不可变对象。一旦被创建,你就无法更改它的子元素或者属性。 ...

  • 渲染Elements

    Elements是React应用的最小构建块。一个element描述了你在屏幕上想看到的: 不像浏览器DOM中的e...

网友评论

      本文标题:3.0 Rendering Elements 渲染元素

      本文链接:https://www.haomeiwen.com/subject/jwrnnttx.html