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 Arguments

Using an argument passed to the createButton function, make it possible to dynamically change the first word within our button.

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

Click here to purchase.
Already joined? Log in here

Transcript

In moving from JavaScript to React, we learned that functions really make it possible to add a lot of reusable elements to our applications. We saw that in the last example.

Right now we have just a button that says "like video". Using what we saw before, we could create a function with the name `...