Chapter 2: Rendering with JSX
This chapter will introduce you to JSX. JSX is the XML/HTML markup syntax that's embedded in your JavaScript code and used to declare your React components. At the lowest level, you'll use HTML markup to describe the pieces of your UI. Building React applications involves organizing these pieces of HTML markup into components. When you create a component, you add new vocabulary to JSX beyond basic HTML markup. This is where React gets interesting – when you have your own JSX tags that can use JavaScript expressions to bring your components to life. JSX is the language used to describe UIs built using React.
In this chapter, we'll cover the following:
- Your first JSX content
- Rendering HTML
- Describing the UI structure
- Creating your own JSX elements
- Using JavaScript expressions
- Fragments of JSX