factor out create-x?
ungoldman opened this issue Β· comments
Hello! π
Any interest in moving lib/create-x.js
into its own module?
I'd like to use it as a factory for a different createElement function, but without requiring reaxe
which includes react
as a direct dependency.
I ended up creating a similar library for hyperscript here: https://github.com/ungoldman/hyperaxe
I adapted your approach in create-x
here: https://github.com/ungoldman/hyperaxe/blob/135aefad5c0b4de8e3232a1a0f43a82d6e2bda32/index.js#L5-L26
I'm open to working on a shared module that works well for both libs, but think the approaches are sufficiently different that it's not necessarily worth the effort for now. Thanks!