preact-compat VS vhtml

Compare preact-compat vs vhtml and see what are their differences.

preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo. (by preactjs)

vhtml

Render JSX/Hyperscript to HTML strings, without VDOM 🌈 (by developit)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
preact-compat vhtml
2 3
956 759
- -
1.5 0.0
over 2 years ago 18 days ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

preact-compat

Posts with mentions or reviews of preact-compat. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-01.
  • Don't Optimize Your React App, Use Preact Instead
    4 projects | dev.to | 1 Nov 2021
    For react app I used Create React App and for Preact used preact-cli. Preact also gives an option to convert your existing react app to preact using preact-compat, but I have built an app from scratch to see the best result.
  • Next.js: Replace React with Preact
    3 projects | dev.to | 28 Feb 2021
    If you use the preact-combat like in the example above then there is very little that isn't supported. For example, PropTypes are not supported in the core but are included in preact-combat.

vhtml

Posts with mentions or reviews of vhtml. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-05.
  • What are the most popular view engines for express.js today?
    1 project | /r/node | 6 Aug 2022
    I just wonder if there's a significant performance impact, but as you said preact or even something simpler that supports JSX, like https://github.com/developit/vhtml could be used to speed it up
  • Is there a way to make this JavaScript code more concise and less repetitive?
    2 projects | /r/learnprogramming | 5 Jun 2022
    Frameworks definitely help solve this problem in part. But you don't need to go that far just for something simple like this. For example you could use htm plus vhtml to get a no-build tools way to write declarative HTML markup that is translated into a plain HTML string. Or for just a few more kb, you can use htm + preact to get all of the power of React for about 13kb, again with no build tools or setup.
  • Menggunakan JSX sebagai view engine Express.js
    5 projects | dev.to | 12 Sep 2020
    Ada satu library bagus yang mengubah jsx element menjadi plain html string yang bisa dipakai sebagai dasar untuk percobaan membuat view engine expressjs. Yaitu vhtml yang dibuat oleh creator preact.

What are some alternatives?

When comparing preact-compat and vhtml you can also consider the following projects:

preact-cli - 😺 Your next Preact PWA starts in 30 seconds.

hyperscript - Create HyperText with JavaScript. [Moved to: https://github.com/hyperhype/hyperscript]

Preact - ⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.

preact-habitat - Zero configuration Preact widgets renderer in any host DOM

preact-bundle-test

solid - A declarative, efficient, and flexible JavaScript library for building user interfaces. [Moved to: https://github.com/solidui/solid]

react-rest-dom - Library that allows you to consume Rest APIs through the React DOM.

kReact - Let's learn React by building react within 100 lines of code

tsdx - Zero-config CLI for TypeScript package development

express-react-views - This is an Express view engine which renders React components on server. It renders static markup and *does not* support mounting those views on the client.