tyroprogrammer / learn-react-app

Application that will help you learn React fundamentals. Install this application locally - there's tutorial, code snippets and exercises. The main objective of this project is to help you get off the ground with React!
MIT License
3.65k stars 328 forks source link

defaulting props with defaultProps #20

Closed UrNas closed 5 years ago

UrNas commented 5 years ago

react component defaultProps allows you to specify what the default props will be in a component if those specific props aren't specified when the component is invoked.