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. ▲ 2
    Have You Built with Preact?
    story by nathan_tarbert · 2023-12-11 · 4 comments
  3. How does this compare with https://github.com/preactjs/preact ?
  4. …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
  5. That's what they claim. https://github.com/preactjs/preact
    comment by fredrikholm · 2023-01-13 · in Alpine.js
  6. …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
  7. …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
  8. …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
  9. 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
  10. > 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
  11. ▲ 1
    The Road to Preact 11
    story by pspeter3 · 2020-07-13 · 0 comments
  12. …team to focus their efforts on react implementation that is not under FB influence like Preact ( https://github.com/preactjs/preact )
  13. ▲ 5
    Preact – Fast 3kB React alternative with the same modern API
    story by modinfo · 2020-05-08 · 1 comment
  14. ▲ 3
    PreactJS 10.1.1 Released
    story by mariuz · 2019-12-17 · 0 comments
  15. …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
  16. ▲ 3
    Preact X – Virtuous DOM and the Fragments of Suspense
    story by tobr · 2019-10-03 · 2 comments
  17. 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]
  18. ▲ 7
    Preact 10.0.0-beta.2 adds basic support for Suspense and lazy()
    story by jviide · 2019-06-04 · 0 comments
  19. ▲ 3
    Preact X Alpha Is Released
    story by petey283 · 2019-03-05 · 0 comments
  20. ▲ 6
    Preact X Alpha 0 is here!
    story by utkarshkukreti · 2019-03-05 · 0 comments
  21. …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
  22. ▲ 3
    Preact: An Open Source Alternative to React
    story by fagnerbrack · 2017-08-22 · 0 comments
  23. …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]…
  24. …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
  25. 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
  26. +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
  27. 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
  28. …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
  29. https://github.com/developit/preact/issues - would you mind logging them as issues?
  30. …[preact] which is an almost drop-in replacement, but smaller, and is under MIT license. [preact]: https://github.com/developit/preact/
  31. ▲ 2
    Preact
    story by tosh · 2017-07-03 · 0 comments
  32. You might like Preact: https://github.com/developit/preact It's a 3kb React alternative with the same API.
  33. Don't forget about others, such as Preact [1] [1] https://github.com/developit/preact
  34. …is a concern, maybe you could just use something like preact as a drop-in replacement for react? https://github.com/developit/preact
  35. …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
  36. …more lightweight and even has a compatibility layer for the few react packages that need it. [1]: https://github.com/developit/preact
  37. Interesting that they don't compare it to preact: https://github.com/developit/preact
  38. …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
  39. 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
  40. ▲ 4
    Fast 3kb React Alternative with the Same ES6 API. Components and Virtual DOM
    story by hitr · 2016-11-20 · 0 comments
  41. …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
  42. 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…
  43. …an alternative solution is easy to adopt without too many changes." Sound for me like preact ( https://github.com/developit/preact )
  44. 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
  45. …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
  46. 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
  47. …own ideas than forking an existing (mammoth) project. Btw, another "tiny react" implementation: https://github.com/developit/preact
  48. 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
  49. 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
  50. ▲ 3
    Fast 3kb React alternative with the same ES6 API. Components and virtual DOM
    story by BafS · 2016-01-27 · 1 comment