Ask HN: Do you support IE8?
4 pointsby skwosh14 comments
import GlobalClass from 'global-class'
const decorator = SuperClass =>
class extends GlobalClass {
render() {
return <SuperClass {...etc}></SuperClass>
}
}
This can be rewritten to remove the fixed dependency on `GlobalClass`, while preserving the underlying type: const decorator = SuperClass =>
class extends SuperClass {
render() {
// const SuperClass = super.constructor // if you want to be less explicit...
return <SuperClass {...etc}></SuperClass>
}
}
The only requirement is to maintain the contract outlined by the `SuperClass`, but that's what `super` is for. (By that I mean e.g. that `componentDidMount` should't be overwritten without also calling super.componentDidMount() before/after).
My post-graduate research concerned signal-rather-than-event-based generation/transformation of compositional data, integrated with textural/timbral synthesis.
My current focus is building a DSP framework for this purpose in C++20 [1].
In any case I'm interested in following your progress, and happy to contribute code/ideas if you feel like collaborating (links in profile).
[1] https://github.com/synthetic-methods/xtal