Files
react/src
Tim Yung 58b3ae3136 Use Default Value for Undefined Props
Currently, default props as defined by `getDefaultProps` are only used if a prop is not specified (using `X in Y` check).

However, this makes it difficult for composing components to pass along the state of not being defined, for example:

  render: function() {
    // If `this.props.someProp` is not set, `InnerThing` should use the default value.
    return <InnerThing someProp={this.props.someProp} />;
  }

This changes the requirement for falling back to the default value to an undefined check (using `typeof X === 'undefined'`).
2013-10-21 13:17:44 -07:00
..
2013-10-11 17:33:47 -07:00
2013-10-15 17:59:14 -07:00
2013-10-15 17:59:14 -07:00
2013-10-15 18:02:28 -07:00
2013-05-29 12:54:02 -07:00
2013-10-08 16:49:11 -07:00