Giter VIP home page Giter VIP logo

Comments (1)

natemoo-re avatar natemoo-re commented on April 27, 2024 1

I am leaning towards dropping React compatibility and only using preact. Please feel free to weigh in on this issue with reactions or comments.

This is obviously a big trade-off, but here are some of my thoughts...

  • React and Preact are likely to diverge at some point in the near future. See (the road to Preact 11)[https://github.com/preactjs/preact/issues/2621]. This is a good move for Preact since React continues to grow in size. As Microsite is focused on performance and size, it's not a bad idea to place our bets on Preact early.
  • The React ecosystem is quite rich, but not as performance focused as the Preact ecosystem. Sticking with Preact likely means that Microsite users don't have as many opportunities for footguns.
  • Preact has phenomenal custom element support, whereas React seems to have little interest in improving their support. Custom Elements are a good ideological fit for Microsite.
  • Microsite is ESM-first and Preact actually ships ESM. React somehow still ships CJS only.

Additional questions:

  • Should Microsite move to htm? This could keep the clientside code close to 1-to-1 with SSR.

from microsite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.