Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Preact

441
290
+ 1
28
winjs

17
40
+ 1
1
Add tool

Preact vs winjs: What are the differences?

Preact: A fast 3k React alternative. Preact is an attempt to recreate the core value proposition of React (or similar libraries like Mithril) using as little code as possible, with first-class support for ES2015. Currently the library is around 3kb (minified & gzipped); winjs: A UI toolkit for modern browsers, by Microsoft. WinJS is a set of JavaScript toolkits that allow developers to build applications using HTML/JS/CSS technology forged with the following principles in mind: 1. Provide developers with a distinctive set of UI controls with high polish and performance with fundamental support for touch, mouse, keyboard and accessibility 2. Provide developers with a cohesive set of components and utilities to build the scaffolding and infrastructure of their applications'.

Preact and winjs can be primarily classified as "Javascript UI Libraries" tools.

Preact and winjs are both open source tools. It seems that Preact with 23.1K GitHub stars and 1.2K forks on GitHub has more adoption than winjs with 4.07K GitHub stars and 504 GitHub forks.

Decisions about Preact and winjs
Damiano Magrini
Chose
PreactPreact
over
ReactReact

Preact offers an API which is extremely similar to React's for less than 10% of its size (and createElement is renamed to h, which makes the overall bundle a lot smaller). Although it is less compatible with other libraries than the latter (and its ecosystem is nowhere as developed), this is generally not a problem as Preact exposes the preact/compat API, which can be used as an alias both for React and ReactDOM and allows for the use of libraries which would otherwise just be compatible with React.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Preact
Pros of winjs
  • 15
    Lightweight
  • 5
    Drop-in replacement for React
  • 4
    Performance
  • 3
    Props/state passed to render
  • 1
    ES6 class components
  • 1
    Developed by Microsoft
  • 0
    Aa

Sign up to add or upvote prosMake informed product decisions

Cons of Preact
Cons of winjs
    Be the first to leave a con
    • 1
      Small community

    Sign up to add or upvote consMake informed product decisions

    58
    569
    93
    1.7K
    - No public GitHub repository available -

    What is Preact?

    Preact is an attempt to recreate the core value proposition of React (or similar libraries like Mithril) using as little code as possible, with first-class support for ES2015. Currently the library is around 3kb (minified & gzipped).

    What is winjs?

    WinJS is a set of JavaScript toolkits that allow developers to build applications using HTML/JS/CSS technology forged with the following principles in mind: 1. Provide developers with a distinctive set of UI controls with high polish and performance with fundamental support for touch, mouse, keyboard and accessibility. 2. Provide developers with a cohesive set of components and utilities to build the scaffolding and infrastructure of their applications'

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Preact?
    What companies use winjs?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Preact?
    What tools integrate with winjs?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    JavaScriptGitHubReact+12
    5
    4236
    What are some alternatives to Preact and winjs?
    React
    Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
    Inferno
    Inferno is an isomorphic library for building high-performance user interfaces, which is crucial when targeting mobile devices. Unlike typical virtual DOM libraries like React, Mithril, Virtual-dom, Snabbdom and Om, Inferno uses techniques to separate static and dynamic content. This allows Inferno to only "diff" renders that have dynamic values.
    Glimmer
    Glimmer is one of the fastest DOM rendering engines, delivering exceptional performance for initial renders as well as updates.
    Mithril
    Mithril is around 12kb gzipped thanks to its small, focused, API. It provides a templating engine with a virtual DOM diff implementation for performant rendering, utilities for high-level modelling via functional composition, as well as support for routing and componentization.
    act
    Rather than having to commit/push every time you want test out the changes you are making to your .github/workflows/ files (or for any changes to embedded GitHub actions), you can use this tool to run the actions locally. The environment variables and filesystem are all configured to match what GitHub provides.
    See all alternatives