Last active
February 7, 2018 20:43
-
-
Save linkesch/edf187f96f68413a0999aa271e6b9758 to your computer and use it in GitHub Desktop.
ES6 class mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default Superclass => class extends Superclass { | |
constructor(...args) { | |
super(...args); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment