2.0 Introducing JSX 介绍JSX

Consider this variable declaration:

考虑这个变量声明:

const element =

Hello World!

This funny tag syntax is neither a string nor HTML.

这个搞笑的标签语法既不是字符串也不是HTML。

It is called JSX, and it is a syntax extension to JavaScript. We recommend using it with React to describe what the UI should look like. JSX may remind you of a template language, but it comes with the full power of JavaScript.

它被叫着JSX。它是JavaScript的语法扩展。我们建议使用它来描述UI的样子。你也许会认为JSX是个模板语言,但是它却拥有JavaScript的全部能力。

你可能感兴趣的:(2.0 Introducing JSX 介绍JSX)