Skip to content

Commit

Permalink
Re-add component.setProps() since other libs depend on it
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Nov 17, 2015
1 parent 1267bab commit 104f00e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/preact.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ export class Component {
triggerComponentRender(this);
}

/** @private */
setProps(props, opts) {
return setComponentProps(this, props, opts);
}

/** Accepts `props` and `state`, and returns a new Virtual DOM tree to build.
* Virtual DOM is generally constructed via [JSX](http://jasonformat.com/wtf-is-jsx).
* @param {object} props Props (eg: JSX attributes) received from parent element/component
Expand Down

0 comments on commit 104f00e

Please sign in to comment.