React Basics

Learn how to use React in Python with Transcrypt.

Introducing React

Now that we understand how to turn our Python code into JavaScript and use external JavaScript libraries, let’s use that knowledge to start working with the React library specifically.

Before we dive too deep into how React works its magic, let’s once again start with a simple application based on the “Hello World” example we did a few chapters back. It was just two buttons: one displayed some text and the other cleared it. But this time, we’ll use the React library to render it. Mimicking the behavior of the previous example will give us some context to reference when learning how React works.

Get hands-on with 1400+ tech skills courses.