Learn and understand React - the practical tutorial Language: German

Learn and understand React - the practical tutorial

Web design, CMS & development 44 Videos · 11.1 h Video training · English Stephan Haewß by Stephan Haewß

React for beginners! In this video tutorial, you will learn the basics of website and app development with React, JSX and the hook functions. Trainer Stephan Haewß explains step by step how to set up and implement React projects. The practical examples - a counting, to-do and video player app - and the detailed explanations will give you a solid foundation in React development in eleven concentrated hours. Learn. Understand. And use it right away!

  • React in practice: How to develop your own apps and websites
  • Explained step by step: basics, important functions and mechanisms
  • From JSX (writing HTML in JavaScript) and props to components, styling and hook functions
  • Practical learning: Develop a counting, to-do and video player app
  • An eleven-hour video tutorial by programming professional Stephan Haewß

Ideal for anyone who has a basic knowledge of JavaScript, HTML and CSS and wants to develop their skills further: Start your React learning journey!

content

44 Videos, 667 minutes

Introduction and first steps

4 Videos · 46 minutes
01 Open free of charge

React tutorial: 1.1 | Welcome and overview

This introduces the topics that will be covered in the course and explains the motivation behind the course.

02 Open free of charge

React-Tutorial: 1.2 | What is special about React?

There are now countless UI frameworks for JavaScript - so why should it be React of all things? In addition to the undisputed popularity of this library, there are also a few more profound reasons that speak in favor of React.

03 Open free of charge

React tutorial: 1.3 | Set up development environment

In this lesson, we set up the development environment and use npm create vite to create our first React app in no time at all.

04 Open free of charge

React tutorial: 1.4 | Anatomy of a React app

After we created a "fresh" React app in the last lesson, the aim here is to understand the structure of this app and explain how React can be embedded in a website.

01

React tutorial: 1.1 | Welcome and overview

5 min Open
02

React-Tutorial: 1.2 | What is special about React?

14 min Open
03

React tutorial: 1.3 | Set up development environment

16 min Open
04

React tutorial: 1.4 | Anatomy of a React app

11 min Open

Refresher: required JS-ES6 functionalities

4 Videos · 75 minutes
05 Open

React-Tutorial: 2.1 | Variable declaration with let and const versus var

A little refresher on var vs. let/const.

06 Open

React-Tutorial: 2.2 | Destructuring

Destructuring enables the targeted extraction of elements from objects and arrays. On closer inspection, there are many possible applications that make JS code more elegant and compact.

07 Open

React-Tutorial: 2.3 | Arrow-Functions

Functions are essential in JS and were previously only declared and defined using the keyword function. ES6 introduces an elegant and short notation that makes the code more readable and offers a solution to a tiresome problem with this.

08 Open

React-Tutorial: 2.4 | Modules

Modules have been used in NodeJs from the very beginning, but initially it relied exclusively on the CommonJs module format with require. Since ES6, there has been a module definition in the standard and thus the new import/export keywords. This format is now supported by almost all (new) JS libraries and NodeJs can also handle it in the latest versions.

05

React-Tutorial: 2.1 | Variable declaration with let and const versus var

18 min Open
06

React-Tutorial: 2.2 | Destructuring

12 min Open
07

React-Tutorial: 2.3 | Arrow-Functions

19 min Open
08

React-Tutorial: 2.4 | Modules

26 min Open

React basics and counting app

6 Videos · 114 minutes
09 Open

React-Tutorial: 3.1 | HTML in JS: JSX

With JSX you describe the UI of a component and integrate JS expressions into it. The project file for the video contains the finished code for this tutorial section.

10 Open

React tutorial: 3.2 | Create components

Custom React components can be written very easily using functions that return JSX.

11 Open

React Tutorial: 3.3 | JavaScript expressions in JSX

This lesson explains how data and JavaScript expressions can be integrated into JSX.

12 Open

React-Tutorial: 3.4 | Save state with useState

Without a state that can change, it is almost impossible to implement a meaningful app. In React, useState is normally used for this. This lesson introduces this hook and explains its use.

13 Open

React-Tutorial: 3.5 | Counter component with props

Props are used to transfer data to child components. Here we explain exactly how this is done and what you need to pay attention to.

14 Open

React Tutorial: 3.6 | Input fields and dynamic props

If props change dynamically, the corresponding render function of the component is called again.

09

React-Tutorial: 3.1 | HTML in JS: JSX

20 min Open
10

React tutorial: 3.2 | Create components

17 min Open
11

React Tutorial: 3.3 | JavaScript expressions in JSX

14 min Open
12

React-Tutorial: 3.4 | Save state with useState

34 min Open
13

React-Tutorial: 3.5 | Counter component with props

16 min Open
14

React Tutorial: 3.6 | Input fields and dynamic props

13 min Open

Develop a to-do app with React

9 Videos · 161 minutes
15 Open

React tutorial: 4.2 | Communication between child and parent component

If a child component wants to communicate something to the parent component, this is done via a callback prop.

16 Open

React-Tutorial: 4.3 | Mark to-do as done

To-dos should also be completed at some point. Here we discuss how this works in the code.

17 Open

React tutorial: 4.4 | Styling with emotion

The appearance of a UI is undoubtedly important. That's why I explain here how this works with the Emotion library and how you can use the Prop className with it. The style attribute, with which you can style each element separately in detail, is also discussed.

18 Open

React Tutorial: 4.5 | Group by Done Status

The to-dos can be divided into two groups by filtering the to-do array.

19 Open

React-Tutorial: 4.6 | Delete to-dos

Of course, you also need to be able to delete to-dos. Here we explain how this works using array filtering.

20 Open

React-Tutorial: 4.7 | Save DIVs

Up to now, we have always "wrapped" components in DIVs. In certain cases, however, this can be dispensed with.

21 Open

React tutorial: 4.8 | Save and load

Now it gets interesting: To-dos can be easily saved persistently in the browser memory and, of course, loaded again so that they "survive" the reloading of the page.

22 Open

React tutorial: 4.9 | UseEffect as a mounted handler

Side effects can be integrated with useEffect. The mounting of a component can also be handled with this function.

23 Open

React-Tutorial: 4.10 | To-do-App - Conclusion

Brief summary of our to-do app and latest improvements.

15

React tutorial: 4.2 | Communication between child and parent component

15 min Open
16

React-Tutorial: 4.3 | Mark to-do as done

19 min Open
17

React tutorial: 4.4 | Styling with emotion

35 min Open
18

React Tutorial: 4.5 | Group by Done Status

18 min Open
19

React-Tutorial: 4.6 | Delete to-dos

14 min Open
20

React-Tutorial: 4.7 | Save DIVs

4 min Open
21

React tutorial: 4.8 | Save and load

17 min Open
22

React tutorial: 4.9 | UseEffect as a mounted handler

29 min Open
23

React-Tutorial: 4.10 | To-do-App - Conclusion

10 min Open

Create a video player app

15 Videos · 164 minutes
24 Open

React tutorial: 5.1 | Create video player app

The video player app is created with create vite and it is explained how the app should be structured. The project file attached to the video contains the finished code for the video player.

25 Open

React-Tutorial: 5.2 | Control video element with useRef

DOM elements can be referenced with the ref attribute and accessed with useRef. Here we do this with the video element.

26 Open

React-Tutorial: 5.3 | New video player component with play/pause/stop

We create the actual video player, which already has buttons for play, pause and stop.

27 Open

React tutorial: 5.4 | Combine pause/play with state

As you never need Play and Pause at the same time, we combine them into one button.

28 Open

React tutorial: 5.5 | Video events for play and pause

The video element's own controls also control the video, but this means that our status for the play/pause button is not adjusted accordingly. We fix this by using event handlers on the video element.

29 Open

React tutorial: 5.6 | Video volume control

We can also change the volume using a separate control.

30 Open

React tutorial: 5.7 | Set video position

Jumping to any position in the video (Seek) is surprisingly easy to accomplish by setting the currentTime property.

31 Open

React-Tutorial: 5.8 | Show video length

The length of the video is only determined after the video metadata has been loaded, which is why we have to wait for the right event.

32 Open

React-Tutorial: 5.9 | Playlist with select

The playlist is realized by a list, which can be implemented with the HTML element select.

33 Open

React-Tutorial: 5.12 | Add new videos to the list

Now the editing of the video list comes into play: We add the addition of video entries.

34 Open

React-Tutorial: 5.13 | Delete entries from list

What you add, you must also be able to delete again. We do this in a similar way to the to-do app by filtering.

35 Open

React-Tutorial: 5.14 | Play Playlist

The playlist should not only serve as a "bookmark list", but also automatically play the videos one after the other. This will be realized in this lesson.

36 Open

React tutorial: 5.15 | Next and Previous buttons

For the impatient: Buttons for the next and previous video.

37 Open

React tutorial: 5.16 | Disable next and previous buttons

A special treatment for the first and last video is implemented: the Next and Previous buttons should be deactivated accordingly.

38 Open

React tutorial: 5.17 | Saving and loading videos

Now we save and load our playlist. This is done in the browser's local storage in the same way as in the To-do app.

You can watch the original videos used as examples in the video player app here (all CC attribution license, see the corresponding websites):

Elephants dream: https://orange.blender.org/
Big Buck Bunny: https://peach.blender.org/
Sintel: https://durian.blender.org/

24

React tutorial: 5.1 | Create video player app

5 min Open
25

React-Tutorial: 5.2 | Control video element with useRef

17 min Open
26

React-Tutorial: 5.3 | New video player component with play/pause/stop

10 min Open
27

React tutorial: 5.4 | Combine pause/play with state

11 min Open
28

React tutorial: 5.5 | Video events for play and pause

4 min Open
29

React tutorial: 5.6 | Video volume control

15 min Open
30

React tutorial: 5.7 | Set video position

15 min Open
31

React-Tutorial: 5.8 | Show video length

7 min Open
32

React-Tutorial: 5.9 | Playlist with select

13 min Open
33

React-Tutorial: 5.12 | Add new videos to the list

15 min Open
34

React-Tutorial: 5.13 | Delete entries from list

6 min Open
35

React-Tutorial: 5.14 | Play Playlist

18 min Open
36

React tutorial: 5.15 | Next and Previous buttons

9 min Open
37

React tutorial: 5.16 | Disable next and previous buttons

6 min Open
38

React tutorial: 5.17 | Saving and loading videos

13 min Open

Advanced topics (additional hooks, optimizations)

5 Videos · 64 minutes
39 Open

React tutorial: 6.1 | Create your own hooks

Using the useJsonFetch hookas an example, this section explains how to write your own hook functions.

40 Open

React-Tutorial: 6.2 | UseImmer instead of useState for simple changes to the state

Changing state with the setter of useState can be tricky. But with useImmer it is no longer a problem.

41 Open

React-Tutorial: 6.3 | Optimization of components with memo

The UI is built faster and reacts more quickly to user input if the render functions are not called unnecessarily. memo can be used to prevent components from being rendered if their props do not change.

42 Open

React-Tutorial: 6.4 | Optimization of components with useCallback

With useCallback you can prevent the unnecessary rendering of child components when callback propsare used.

43 Open

React Tutorial: 6.5 | Optimization of components with useMemo

Complex calculations within the render functions should only be carried out if necessary. With useMemo, the results of these calculations can be cached, taking into account the dependencies.

39

React tutorial: 6.1 | Create your own hooks

12 min Open
40

React-Tutorial: 6.2 | UseImmer instead of useState for simple changes to the state

15 min Open
41

React-Tutorial: 6.3 | Optimization of components with memo

12 min Open
42

React-Tutorial: 6.4 | Optimization of components with useCallback

13 min Open
43

React Tutorial: 6.5 | Optimization of components with useMemo

12 min Open

Summary

1 Videos · 7 minutes
44 Open

React tutorial: 7 | Conclusion and outlook

I summarize the results of the course here and give tips on what the participants should look at after the course.

44

React tutorial: 7 | Conclusion and outlook

7 min Open

Examples of use

  • Screenshot from the React tutorial
    Open gallery
    Start the tutorial with an introduction to React and set up the development environment.
  • Screenshot from the React tutorial
    Open gallery
    Learn all the important basics about JSX, components and props.
  • Developing a to-do app with React
    Open gallery
    Learn and understand from practical examples: Develop a functional to-do app with React.
  • Create a video player with React
    Open gallery
    Create a video player with all the functions that such an application needs.
Comments (0)

Comment now „Learn and understand React - the practical tutorial“