score:4

Accepted answer
class Foo extends React.Component {
  static defaultProps = {
    bar: React.PropTypes.array.isRequired
  }
}

score:1

    const data = this.props.data;
    const navNodes = data ? data.map(...your function...) : [];

Related Query

More Query from same tag