Notes of Maks Nemisj

Experiments with JavaScript

es2015

React.js: propTypes in ES6/ES2015 components

If you’ve decided to move react components to es6/es2015 syntax you’ve might found out that defining propTypes and contextTypes is not that seamless as it was. Babel@6.7.7 doesn’t yes support static properties on Classes and the most evident way to use propTypes is to append them to the class at the end: Though there is […]

, , , ,