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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user