Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use babel-plugin-rawact? #280

Open
brodycj opened this issue Nov 13, 2018 · 3 comments
Open

Use babel-plugin-rawact? #280

brodycj opened this issue Nov 13, 2018 · 3 comments

Comments

@brodycj
Copy link
Contributor

brodycj commented Nov 13, 2018

I found https://github.com/sokra/rawact (babel-plugin-rawact) last week, wonder if it could help support a similar programming API more efficiently?

@dmikey
Copy link
Collaborator

dmikey commented Nov 13, 2018

So I took a look, and the only issue with this, is that we've completely removed the dependency on any react (even at build time), we actually transform directly to an AST using only Babel's support for recognizing JSX trees, and since we have API's to represent both natively and on the javascript side, there's a bit more glue that we require for event life cycles. Looks like Rawact is an awesome step, just not sure it fits in with out current paradigm. Thanks for pointing it out!

@dmikey dmikey closed this as completed Nov 13, 2018
@brodycj
Copy link
Contributor Author

brodycj commented Nov 13, 2018

Thanks @dmikey, makes sense.

It looks to me like the counterpart to React VDOM is in raster.js (https://github.com/syrjs/core/blob/develop/lib/rasters/dom/raster.js). I saw it before, wonder if we should documented it better someday. I think a comparison would be nice.

@dmikey
Copy link
Collaborator

dmikey commented Nov 15, 2018

That's actually a great idea. Re-opening issue for discussion. You're totally right, that it should be better documented so that the comparison makes more sense.

@dmikey dmikey reopened this Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants