DEV Community

Discussion on: The 10 Component Commandments

Collapse
 
selbekk profile image
selbekk

That’s a nice way to do it, too. I tend to use prop types or type annotations to make that assertion for me, which reads better to me.