Hacker News new | past | comments | ask | show | jobs | submit login

As an alternative to defining propTypes and defaultProps as shown in the example, could I do something like this?

https://gist.github.com/AndrewIngram/f0574f79fca8e13e201b

It's a similar pattern to how I got Backbone models and views converted to ES6 classes.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: