bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/React

React

React Core

React fundamentals: components, JSX, props, state, events, forms, and rendering patterns.

Lesson 1

React Tutorial

React Tutorial

2 min
Read lesson →
Lesson 2

React Introduction

React Introduction

2 min
Read lesson →
Lesson 3visual

React Getting Started

React Getting Started

2 min
Read lesson →
Lesson 4

Your First React App

Now that your development environment is set up, let's try to modify the default app to display "Hello, World!". Modify the React App Look in the my-react-app directory, and you will find a src folde…

2 min
Read lesson →
Lesson 5visual

React Render HTML

React Render HTML

3 min
Read lesson →
Lesson 6

Upgrade React

Upgrade to React 19 Upgrading an existing React application to version 19 only requires two steps. If you are already using the latest version of React, you can skip this section. Step 1: Install Rea…

2 min
Read lesson →
Lesson 7

React ES6

React ES6

2 min
Read lesson →
Lesson 8

React ES6 Classes

Classes ES6 introduced classes. A class is a type of function, but instead of using the keyword function to initiate it, we use the keyword class, and the properties are assigned inside a constructor…

2 min
Read lesson →
Lesson 9visual

React ES6 Variables

Variables Before ES6 there was only one way of defining your variables: with the var keyword. If you did not define them, they would be assigned to the global object. Unless you were in strict mode,…

2 min
Read lesson →
Lesson 10

React ES6 Destructuring

Destructuring in React Destructuring is a JavaScript feature that allows you to extract values from objects or arrays into distinct variables. In React, it's commonly used with props, hooks, and stat…

4 min
Read lesson →
Lesson 11

React ES6 Modules

Modules JavaScript modules allow you to break up your code into separate files. This makes it easier to maintain the code-base. ES Modules rely on the import and export statements. Export You can exp…

2 min
Read lesson →
Lesson 12visual

React JSX

React JSX

4 min
Read lesson →
Lesson 13

React JSX Expressions

One of the most powerful features of JSX is the ability to embed JavaScript expressions directly within your markup. Expressions You can insert any valid JavaScript expression inside JSX by wrapping…

2 min
Read lesson →
Lesson 14

React JSX Attributes

JSX allows you to insert attributes into HTML elements, but there are a few important differences. class = className The class attribute is a much used attribute in HTML, but since JSX is rendered as…

2 min
Read lesson →
Lesson 15

React JSX If Statements

Conditions - if statements React supports if statements, but not inside JSX. To be able to use conditional statements in JSX, you should put the if statements outside of the JSX, or you could use a t…

2 min
Read lesson →
Lesson 16

React Components

React Components

3 min
Read lesson →
Lesson 17

React Class Components

React Class Components

13 min
Read lesson →
Lesson 18

React Props

Props are arguments passed into React components. Props are passed to components via HTML attributes. props stands for properties. React Props React Props are like function arguments in JavaScript an…

3 min
Read lesson →
Lesson 19

React Props Children

Props Children In React, you can send the content between the opening and closing tags of a component, to another component. This can be accessed in the other component using the props.children prope…

2 min
Read lesson →
Lesson 20

React Events

Just like HTML DOM events, React can perform actions based on user events. React has the same events as HTML: click, change, mouseover etc. Adding Events React events are written in camelCase syntax:…

2 min
Read lesson →
Lesson 21

React Lists

In React, you will render lists with some type of loop. The JavaScript map() array method is generally the preferred method. If you need a refresher on the map() method, check out the ES6 Array map()…

2 min
Read lesson →
Lesson 22

React Forms - Textarea

Textarea The textarea element in React is slightly different from ordinary HTML. In HTML the value of a textarea is the text between the start tag <textarea> and the end tag </textarea>. <textarea> C…

2 min
Read lesson →
Lesson 23

React Forms - Select

Select A drop down list, or a select box, in React is also a bit different from HTML. In HTML, the selected value in the drop down list is defined with the selected attribute: HTML: <select> <option…

2 min
Read lesson →
Lesson 24

React Forms - Multiple Input Fields

Handling Multiple Inputs When you have multiple controlled input fields in a form, you can manage their state either by: 1. Using a separate useState call for each input. 2. Using a single useState c…

2 min
Read lesson →
Lesson 25

React Forms - Checkbox

Checkbox For checkboxes, use the checked attribute instead of value to control its state. We'll use the useState Hook to manage the value of the textarea: In the handleChange function, use the e.targ…

2 min
Read lesson →
Lesson 26

React Forms - Radio

Radio Radio buttons are typically used in groups where only one option can be selected. All radio buttons in a group should share the same name attribute. You control radio buttons based on whether t…

2 min
Read lesson →
Lesson 27

React Portals

React Portals

4 min
Read lesson →
Lesson 28

React Suspense

React Suspense lets you display an alternative HTML while waiting for code or data to load. The alternative HTML can be a component, text, or any valid content. What is Suspense? Suspense is a React…

2 min
Read lesson →
Lesson 29

Styling React Using CSS

Styling React Using CSS

3 min
Read lesson →
Lesson 30visual

React CSS Modules

CSS Modules let you write CSS that is scoped locally to a specific component. This prevents CSS class name conflicts and makes your styles more maintainable. What are CSS Modules? In React, CSS Modul…

4 min
Read lesson →
Lesson 31visual

React CSS-in-JS

React CSS-in-JS

3 min
Read lesson →
Lesson 32visual

React Router

React Router

6 min
Read lesson →
Lesson 33

React Transitions

❮ Previous Next ❯ What is useTransition? The useTransition hook helps you keep your React app responsive during heavy updates. It lets you mark some state updates as "non-urgent", allowing other,…

2 min
Read lesson →
Lesson 34

React Higher Order Components

❮ Previous Next ❯ What is a Higher Order Component? A Higher Order Component (HOC) is like a wrapper that adds extra features to your React components. Think of it like putting a case on your pho…

2 min
Read lesson →