Defaults Props in React Js

You can assign default values for properties of your components. When you do not supply prop values externally to the component default values are applied

You can Setting.defaultProps object is used to define the default properties.

defaultProps is declared outside of the class or we call them instance of the class

This is your App.js file