React Cookbook
上QQ阅读APP看书,第一时间看更新

How it works...

PropTypes validations are very important for developers because they force us to define which type of prop we are going to receive in our components and validate whether some of them are required or not.

If you followed all the steps correctly, you should see something like this: