Related questions
React eslint error missing in props validation
I have the next code, eslint throw:
react/prop-types onClickOut; is missing in props validation
react/prop-types children; is missing in props validation
propTypes was defined but eslint does not recognize it.
import React, { Component, PropTypes } from 'react';
class IxClickOut …
How to set a default value for a Flow type?
I have defined a custom Flow type
export type MyType = {
code: number,
type: number = 1,
}
I want the type parameter to default as 1 if no value is present. However, Flow is complaining with Unexpected token =.
Can this be done with Flow?
…