Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære JSX Introduction | Getting Started: JSX
Introduction to React

bookJSX Introduction

JSX is an important part of this course since we will depend on JSX to write most of our React components.

React can be used without JSX though it might be difficult and tedious to use React without JSX.

JSX stands for JavaScript XML. It allows us to write HTML directly into JavaScript.

const element = <h1>Hello World</h1>;

It is important to note that JSX cannot be processed directly by the browsers; hence, we need to compile it into simple JavaScript.

For that purpose, we use a toolchain called Babel – which comes with the create-react-app node package, mentioned in Chapter 2. so we don't have to worry about installing it separately. All you need to know about Babel is that it is the toolchain that converts the React code written in JSX into simple JavaScript.

question mark

Choose all the correct statements:

Select the correct answer

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 1

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Suggested prompts:

Spørg mig spørgsmål om dette emne

Opsummér dette kapitel

Vis virkelige eksempler

Awesome!

Completion rate improved to 2.7

bookJSX Introduction

Stryg for at vise menuen

JSX is an important part of this course since we will depend on JSX to write most of our React components.

React can be used without JSX though it might be difficult and tedious to use React without JSX.

JSX stands for JavaScript XML. It allows us to write HTML directly into JavaScript.

const element = <h1>Hello World</h1>;

It is important to note that JSX cannot be processed directly by the browsers; hence, we need to compile it into simple JavaScript.

For that purpose, we use a toolchain called Babel – which comes with the create-react-app node package, mentioned in Chapter 2. so we don't have to worry about installing it separately. All you need to know about Babel is that it is the toolchain that converts the React code written in JSX into simple JavaScript.

question mark

Choose all the correct statements:

Select the correct answer

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 1
some-alt