JavaScript to React

Join the React Bootcamp

The React Bootcamp is 5 full weeks of professional React training to take you from wherever you are to top-tier React programmer in record time.

Lifetime Access

$79
Complete Package
Become a React Pro
Problem

Function Composition

Create a video player using createHeader, createVideo and createButton.

Make the header the video title, prefixed with "Watch".

Display the video using the videoSrc, passed as an argument.

Make the video player 300 pixels in height and full width.

Display a like and dislike button undern...

This lesson is part of the full version of the React Bootcamp.

Click here to purchase.
Already joined? Log in here

Transcript

A big mental shift that needs to take place when you're going from just JavaScript to building apps with React is that we need to start thinking of these functions as being little, reusable pieces of our user interface.

To work with components, we need to compose them. We not only need to arrange...