Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Using JSnoX with Inferno #16

Closed
foxdonut opened this issue Sep 15, 2016 · 2 comments
Closed

Using JSnoX with Inferno #16

foxdonut opened this issue Sep 15, 2016 · 2 comments

Comments

@foxdonut
Copy link

I am quite fond of JSnoX, thank you for writing it!

I've been experimenting with Inferno and wanted to try using JSnoX with it, so I wrote this snippet of code:

import jsnox from "jsnox";
import { createVElement } from "inferno";

const d = jsnox({
  isValidElement: obj => obj.length,
  createElement: createVElement
});

And it seems to work well.

But I wanted to ask you, what do you think of this approach? Good idea, bad idea?

Thanks.

@af
Copy link
Owner

af commented Sep 15, 2016

I haven't used Inferno before, so I can't speak to that side of things. However this is exactly the kind of use case I envisioned with making React an argument to jsnox(). Glad to hear it's working for you with Inferno, please post issues/PRs if you do run into any issues.

@af af closed this as completed Sep 15, 2016
@foxdonut
Copy link
Author

Thanks @af !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants