1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-31 03:59:58 +02:00

Use Preact, rather than React (#91)

* moving to Preact to shave off 100+kb

* preact'ed
This commit is contained in:
Mike Kamermans
2017-04-02 14:32:06 -07:00
committed by GitHub
parent bcc465d26b
commit 25a18d8891
18 changed files with 122 additions and 251 deletions

View File

@@ -6,12 +6,14 @@ module.exports = function(Component) {
propName = options.propName || "",
values = options.values || {},
controller = options.controller || noop,
defaultProps = Component.defaultProps,
getDefaultProps = Component.getDefaultProps,
ref = "wrappedComponent";
return React.createClass({
values: values,
defaultProps: defaultProps,
getDefaultProps: getDefaultProps,
onKeyDown: function(event, api) {