DEV Community

loading...
Cover image for WIP: React `defaultProps` and `propTypes` for HTML elements

WIP: React `defaultProps` and `propTypes` for HTML elements

Andrew Luca
All in Developer! ♣️ ♥️ ♠️ ♦️
・1 min read

Introduction

Let's get started

Conclusion

Get feedback and iterate

There’s no replacement for practice

If you like this article please share it!

TODO


https://reactjs.org/docs/react-component.html#defaultprops
https://reactjs.org/docs/typechecking-with-proptypes.html

Discussion (0)