Skip to content

preact backend #31

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

Closed
janat08 opened this issue Oct 15, 2019 · 5 comments
Closed

preact backend #31

janat08 opened this issue Oct 15, 2019 · 5 comments

Comments

@janat08
Copy link

janat08 commented Oct 15, 2019

All 3 of those are lighter by a wide margin, while maintaing same symantics. 200 kb bundle is no good.

@janat08 janat08 changed the title hyperhtml/mithril/preact hyperhtml/mithril/preact backends Oct 15, 2019
@janat08 janat08 changed the title hyperhtml/mithril/preact backends preact backend Oct 15, 2019
@janat08
Copy link
Author

janat08 commented Oct 15, 2019

Apparently preact has a layer for compatibility with react.

@ajnsit
Copy link
Member

ajnsit commented Oct 16, 2019

It should be fairly straightforward to create a new backend as long as it has -

  1. Purescript bindings
  2. A virtual-dom

For libraries that have a virtual-dom already, it's the first part (purescript bindings) which is usually the largest hurdle. Preact is a drop-in replacement for React, so it should be a lot easier to create Purescript bindings for it, if they don't exist already.

Once we have Purescript bindings, I would be happy to help out with any new backend projects, or even build those backends myself.

@janat08
Copy link
Author

janat08 commented Nov 22, 2019

Nerv is probably a better candidate as it's faster and is compatible first, and preact loses speed with used with compatibility layer.

@ajnsit
Copy link
Member

ajnsit commented Aug 2, 2020

I'm going to close this, and open an umbrella issue for alternative backends.

@ajnsit
Copy link
Member

ajnsit commented Aug 2, 2020

Closing this in favor of the umbrella issue.

@ajnsit ajnsit closed this as completed Aug 2, 2020
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