diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-13 08:16:12 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-13 08:16:52 +0100 |
commit | b2128609ac8159a14224deba399144b3400c8c20 (patch) | |
tree | 4759dfda67c54f6838c3aef0951545ae18bb83bd /thirdparty/preact/src/vdom/functional-component.js | |
parent | 3f0ee289c4a61991d0e75906a9bd949cebb39d20 (diff) | |
download | wallet-core-b2128609ac8159a14224deba399144b3400c8c20.tar.xz |
Finally give in and use React, minor tweeks.
Preact (a minimalistic React alternative) had too many bugs ...
Diffstat (limited to 'thirdparty/preact/src/vdom/functional-component.js')
-rw-r--r-- | thirdparty/preact/src/vdom/functional-component.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/thirdparty/preact/src/vdom/functional-component.js b/thirdparty/preact/src/vdom/functional-component.js deleted file mode 100644 index 04bc5a464..000000000 --- a/thirdparty/preact/src/vdom/functional-component.js +++ /dev/null @@ -1,25 +0,0 @@ -import { EMPTY } from '../constants'; -import { getNodeProps } from './index'; -import { isFunction } from '../util'; - - -/** Check if a VNode is a reference to a stateless functional component. - * A function component is represented as a VNode whose `nodeName` property is a reference to a function. - * If that function is not a Component (ie, has no `.render()` method on a prototype), it is considered a stateless functional component. - * @param {VNode} vnode A VNode - * @private - */ -export function isFunctionalComponent(vnode) { - let nodeName = vnode && vnode.nodeName; - return nodeName && isFunction(nodeName) && !(nodeName.prototype && nodeName.prototype.render); -} - - - -/** Construct a resultant VNode from a VNode referencing a stateless functional component. - * @param {VNode} vnode A VNode with a `nodeName` property that is a reference to a function. - * @private - */ -export function buildFunctionalComponent(vnode, context) { - return vnode.nodeName(getNodeProps(vnode), context || EMPTY); -} |