dillon1000/react
Commit
Browse files Clarify usage of `.propTypes` and `.defaultProps` when using stateless functional components
I've seen some people unaware about the fact that you can still specify `.propTypes` and `.defaultProps` when you are defining a functional component by setting them as properties of the function. I thought clarifying this in the docs could help!
Changed paths1 file
First-parent comparisondocs/docs/05-reusable-components.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…