Skip to content
#

Preact.js

preact logo

Preact.js is a lightweight React alternative with the same API.

Similarities to React

  • ES6 Class, hooks, and Functional Components
  • Compatibility via a simple preact/compat alias
  • JSX, VDOM, DevTools, HMR, SSR.
  • Cross-browser compatibility
  • Transparent asynchronous rendering with a pluggable scheduler
  • Differences from React

    • Works in the browser without any transpilation steps
    • Syntactic sugar
    • <ul>
      
        <li><code class="language-plaintext highlighter-rouge">props</code>, <code class="language-plaintext highlighter-rouge">state</code> and <code class="language-plaintext highlighter-rouge">context</code> are passed to <code class="language-plaintext highlighter-rouge">render()</code></li>
      
        <li>Standard HTML attributes like <code class="language-plaintext highlighter-rouge">class</code> and <code class="language-plaintext highlighter-rouge">for</code> can be used instead of <code class="language-plaintext highlighter-rouge">className</code> and <code class="language-plaintext highlighter-rouge">htmlFor</code></li>
      
      </ul>
      

      Here are 2,065 public repositories matching this topic...

      Released November 14, 2015

      Latest release about 1 month ago

      Followers
      34 followers
      Repository
      preactjs/preact
      Website
      github.com/topics/preact

      Related Topics

      hmr jsx react ssr virtual-dom
      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy