Closed alidcast closed 4 years ago
Like we talked about on Slack, I think following thheller's suggestion that we parameterize the Component
class is the best option.
So we can change it to:
export function createClass(superclass, spec, statics) {
let c = class HelixClass extends superclass {
...
and then in helix.core/create-component
:
(helix.class/createClass react/Component spec statics)
not sure if glob imports are expected to work, but here's my fix for #1 to get helix working with shadow-cljs and react native