In this lesson we'll learn how to use raw React APIs to create the most basic Hello World example. React defines it’s own
createElement function that we will see works similar to
document.createElement. And in place of
appendChild we will use
We'll also learn a little bit about React props and the children prop.
In this lesson, we'll learn how you can use the prop-types module to validate a custom React component's props. We will start by building out a Proptypes object that throws an error if the prop passed is not of the required type. Then, we will import the React team's
prop-types module and look at some of the useful utilities it provides like
isRequired. Function components define Proptypes off of a property while Class components define Proptypes off of a static method.