Embed presentation
Downloaded 22 times





![Prop Type
Checking
Prop Types
❖ array
❖ bool
❖ Func
❖ Number
❖ Object
❖ String
❖ Symbol
❖ Element
❖ instanceOf(<type>)
❖ oneOf([array])
❖ oneOfType([arrayOfTypes])
❖ arrayOf(<type>)
❖ objectOf(<type>)
❖ shape(shapeObject)
See more: https://facebook.github.io/react/docs/typechecking-with-proptypes.html](https://image.slidesharecdn.com/004-170302100437/85/004-Working-with-React-component-6-320.jpg)







This document provides an overview of working with React components, including file structure, creating components, JSX, lifecycles, stateless components, events, passing props, default props, context, refs, and types of components. It also covers prop type checking and gives examples of smart and reusable components.





![Prop Type
Checking
Prop Types
❖ array
❖ bool
❖ Func
❖ Number
❖ Object
❖ String
❖ Symbol
❖ Element
❖ instanceOf(<type>)
❖ oneOf([array])
❖ oneOfType([arrayOfTypes])
❖ arrayOf(<type>)
❖ objectOf(<type>)
❖ shape(shapeObject)
See more: https://facebook.github.io/react/docs/typechecking-with-proptypes.html](https://image.slidesharecdn.com/004-170302100437/85/004-Working-with-React-component-6-320.jpg)





