React PropTypes.oneOf to specify an enum doesn’t work

With the ES6 syntax the propTypes in React should be defined as a static property. So the only difference should be in the propTypes declaration.

static propTypes = {
     position : React.PropTypes.oneOf(['rightTop','rightBottom']),
     showMqttClientStatus : React.PropTypes.bool.isRequired
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)