freeCodeCamp/guide/chinese/certifications/front-end-libraries/react/create-a-simple-jsx-element/index.md

7 lines
289 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Create a Simple JSX Element
localeTitle: 创建一个简单的JSX元素
---
## 创建一个简单的JSX元素
这个挑战相当简单用h1替换JSX元素中的div `javascript const JSX=<h1></h1>;` 然后添加所需的文本。 `javascript const JSX = <h1>Hello JSX!</h1>;`