3 ms·
As an alternative to defining propTypes and defaultProps as shown in the example, could I do something like this? https://gist.github.com/AndrewIngram/f0574f79
by andrewingram 12y ago
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 https://gist.github.com/AndrewIngram/f0574f79fca8e13e201b
It's a similar pattern to how I got Backbone models and views converted to ES6 classes.