angus-c / es6-react-mixins Goto Github PK
View Code? Open in Web Editor NEWuniversal mixin adapter for react
License: MIT License
universal mixin adapter for react
License: MIT License
The built lib/mixin file includes a call to Object.assign
which isn't available on most browsers. I thought babel provided a polyfill automatically for this - but it's definitely in your lib code.
var noop = function noop() {};
var es6ify = function es6ify(mixin) {
if (typeof mixin === 'function') {
// mixin is already es6 style
return mixin;
}
return function (Base) {
// ...
})(Base);
Object.assign(NewClass.prototype, mixin);
return NewClass;
};
};
May need to build with this? https://github.com/JedWatson/babel-plugin-object-assign/blob/master/index.js
when installing from npm, there'e a directory node_modules/es6-react-mixins/node_modules/react/
.
This cause @provideModule duplication issue (at least with react-native).
Is there any reason to expect this won't work well with React @ 0.14 ?
We are using 0.2.1 of es6-react-mixins with react 0.14.7. One of our components uses two mixins, and works fine. However, our console log is flooded with warnings a la:
Warning: xyComponent(...): React component classes must extend React.Component.
Since the component is used in a <td>
, the warnings amount to thousands of lines. Any chance this warning gets silenced? It is triggered here: https://github.com/facebook/react/blob/v0.14.7/src/renderers/shared/reconciler/ReactCompositeComponent.js#L178
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.