Hacker GitHub

← All repos

preactjs/preact

View on GitHub ↗ ★ 38,974 JavaScript

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

52 mentions on Hacker News by 50 people: 14 stories, 38 comments · first 2015-12-04 · latest 2024-04-01

Mentions per year 52 mentions · busiest year 2017 (16)
20082026
  1. …be used by any other reactive framework. I often see SignalLike<T> type that tries to subtype it. https://github.com/preactjs/preact/blob/757746a915d186a90954...
    comment by ivanjermakov · 2024-04-01 · in A proposal to add signals to JavaScript
  2. How does this compare with https://github.com/preactjs/preact ?
  3. …in react works I actually look into how it's implemented in preact. Hooks is around 500 LOC. https://github.com/preactjs/preact/blob/master/hooks/src/ind... React does basically the same, just in a more complex way (because fiber and…
    comment by nedt · 2023-03-20 · in Introducing react.dev
  4. That's what they claim. https://github.com/preactjs/preact
    comment by fredrikholm · 2023-01-13 · in Alpine.js
  5. …is a TODO pointing to [1] which was merged in 10.10.3, so hopefully that can be fixed soon? [1] https://github.com/preactjs/preact/pull/3671
    comment by skybrian · 2022-09-07 · in Preact Signals
  6. …fewish dependencies, unambitious UX. We built it with preact[0], snowpack[1], and taste[2]. 0. https://github.com/preactjs/preact 1. https://github.com/FredKSchott/snowpack 2. https://github.com/benchristel/taste
  7. …simpler than react (~3KB), and whats weird, it's also faster BTW: code is very easy to read/follow https://github.com/preactjs/preact/
    comment by cztomsik · 2021-09-24 · in Reactive Clojure: A web language
  8. Preact is React without the fluff - https://github.com/preactjs/preact loc in a node project is hard to judge due to packages and the aforementioned mono repo difference, but the preact functional build artefact is an order of magnitude…
    comment by mhio · 2021-09-24 · in Reactive Clojure: A web language
  9. > another one Preact [0] came before Vue [1]. [0] https://github.com/preactjs/preact/commits/master?after=605b... [1] https://github.com/vuejs/vue/commits/dev?after=5255841aaff44...
    comment by junon · 2021-03-03 · in jQuery 3.6.0
  10. …team to focus their efforts on react implementation that is not under FB influence like Preact ( https://github.com/preactjs/preact )
  11. …idea where this is implemented in React, but in Preact it's a simple integer that is incremented: https://github.com/preactjs/preact/blob/abc162c4d6442d5495f6... I think there are other ways to implement them, such as treating the return…
    comment by ratww · 2019-12-13 · in Thinking in React Hooks
  12. There is also Preact which is a 3kb alternative to React with a similar API. https://github.com/developit/preact/ Disclaimer: I'm one of the maintainers.
    comment by mhagemeister · 2019-06-15 · in JavaScript Is the CO2 of the Web [audio]
  13. …et al. so large will eventually make their way upstream and be codified as browser specs. [1] https://github.com/developit/preact
    comment by tomnipotent · 2018-08-25 · in The Origin of Stimulus JavaScript Framework
  14. …no React Native to worry about. 4. Less invariants, error handling, and error messages [1] https://github.com/developit/preact/blob/master/src/constant... [2] https://github.com/facebook/react/blob/master/src/renderers/... [3]…
  15. …that'd multiply the size of the codebase by fifteen... So what's the deal? How so small? [1] ( https://github.com/developit/preact/wiki/Differences-to-Reac... )
    comment by outsidetheparty · 2017-08-21 · in Preact : a smaller, faster React alternative
  16. Alternatively there's this: https://github.com/developit/preact Preact is a fast 3kB alternative to React, with the same ES2015 API as that of React. Preact is MIT licensed and does not have any additional conditions beyond that.
    comment by unkown-unknowns · 2017-08-19 · in Explaining React's license
  17. +1 on this. I'm going for Preact ( https://github.com/developit/preact ) for React alternative.
    comment by devdoomari · 2017-08-19 · in Explaining React's license
  18. Indeed, preact [1] and and inferno [2] are both MIT Licensed. [1] https://github.com/developit/preact/blob/master/LICENSE [2] https://github.com/infernojs/inferno/blob/master/LICENSE.md
    comment by krirken · 2017-08-19 · in Explaining React's license
  19. …your aversion is to the React license, but a similar project - Preact - uses an MIT license: https://github.com/developit/preact NOTE: not affiliated with Preact (I live in the caves of the backend).
    comment by joshmarlow · 2017-07-20 · in Things to learn in React before using Redux
  20. https://github.com/developit/preact/issues - would you mind logging them as issues?
  21. …[preact] which is an almost drop-in replacement, but smaller, and is under MIT license. [preact]: https://github.com/developit/preact/
  22. You might like Preact: https://github.com/developit/preact It's a 3kb React alternative with the same API.
  23. Don't forget about others, such as Preact [1] [1] https://github.com/developit/preact
  24. …is a concern, maybe you could just use something like preact as a drop-in replacement for react? https://github.com/developit/preact
  25. …to know [and is not addressed] is why someone would use this over Preact [1] or Inferno [2]? [1] https://github.com/developit/preact [2] https://github.com/infernojs/inferno
  26. …more lightweight and even has a compatibility layer for the few react packages that need it. [1]: https://github.com/developit/preact
  27. Interesting that they don't compare it to preact: https://github.com/developit/preact
  28. …4: https://facebook.github.io/react/contributing/codebase-overv... 5: https://github.com/developit/preact 6: https://github.com/rails/rails 7: https://github.com/rails/rails/tree/master/activejob
    comment by mhink · 2016-12-19 · in One Way to Improve Your Coding
  29. Preact Issue #417 - Do virtual DOM diffing on web worker? [1] [1] https://github.com/developit/preact/issues/417
    comment by krirken · 2016-12-05 · in Preact rendering in a web worker
  30. …going from version 1 to version 2. It's not like the new framework[1] that's replaced React. /s 1: https://github.com/developit/preact
  31. Look into preact + buble ES2015 compiler then, should be small enough https://github.com/developit/preact https://gitlab.com/Rich-Harris/buble my app.min.js.gz is 6.2K for some basic stuff including preact-router…
  32. …an alternative solution is easy to adopt without too many changes." Sound for me like preact ( https://github.com/developit/preact )
  33. Would it be possible to split those libraries in smaller modules? For example Preact ( https://github.com/developit/preact ) has the same basic API of React but it's just 3kb because a lot of features are stripped away in optional modules.…
    comment by mattecapu · 2016-04-08 · in React v15.0
  34. …immutable data) is a big win. That said, I've been tinkering with this project on the side: https://github.com/developit/preact It's a 3-4K React-ish library. Pretty impressed with it so far, but it does lack the dev tools, event…
    comment by christophilus · 2016-04-08 · in React v15.0
  35. If you want the React semantic without the size, you can just use something like https://github.com/developit/preact (which is like 3kb once deployed). You also don't need JSX if you don't want to. Using React without JSX and just aliasing…
    comment by shados · 2016-03-12 · in State of the Art JavaScript in 2016
  36. …own ideas than forking an existing (mammoth) project. Btw, another "tiny react" implementation: https://github.com/developit/preact
  37. I've found this in the project wiki https://github.com/developit/preact/wiki/Browser-Support
    comment by tjelen · 2016-01-29 · in Preact, a fast 3k React alternative
  38. Also property/attribute normalization. Preact: https://github.com/developit/preact/blob/master/src/preact.j... React: https://github.com/facebook/react/blob/3b96650e39ddda5ba4924...
    comment by peterhunt · 2016-01-28 · in Preact, a fast 3k React alternative