DEV Community

Discussion on: Using PropTypes in React

Collapse
 
vier31 profile image
Jan Schröder

Yes, one can even implement custom shapes to define more complex objects.

We had to implement them after the fact and it was really a pain, but once they are set up, they are a good low level safety net to test an application.

So my advice would be to write prop types from the beginning.

Collapse
 
mariaverse profile image
CiaraMaria

Thank you for this addition, Jan!