O'Reilly logo

Mastering React by Ryan Vice, Adam Horton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1. Introduction to React

This book is an advanced book on React but we wanted to provide a primer on the basics so that this book could be both comprehensive and accessible. We will not spend a lot of time on all of the subtleties of each technique that we will look at here. We will instead look at concise samples that illustrate the tools and techniques that we are covering. We will also have links to where you can easily access and run the code samples as you follow along.

In this chapter, we will be covering the following concepts:

  • About the code samples
  • Hello World sample in React
  • JSX
  • props
  • state

Hello React

For the first example we will create a fully working Hello World-style example using React by undertaking the following steps:

  1. Create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required