From 104f00e76cab2b009ddf6347396b9b9ff2356ea9 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 17 Nov 2015 17:16:39 -0500 Subject: [PATCH] Re-add component.setProps() since other libs depend on it --- src/preact.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/preact.js b/src/preact.js index 354d960fd1..cefb570146 100644 --- a/src/preact.js +++ b/src/preact.js @@ -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