CHAPTER 3

image

JSX Fundamentals

In the first chapter, you read about the case for why you should use React, and the benefits that React carries with it. The second chapter showcased the important core functions of React and how you can leverage the internal API of React—ReactElements and ReactComponents—in order to understand how to build a capable React application.

In each of these chapters JSX was shown or at least mentioned. JSX is not required to work with React, but it can make authoring components much easier. JSX allows you to create JavaScript objects, which are either DOM elements or ReactComponents from an XML-like syntax. This chapter will ...

Get Introduction to React now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.