Repository navigation

#

Preact.js

发布于 November 14, 2015

preactjs/preact
preactjs.com

相关主题

ReactJSX (JavaScript XML)
preact logo

Preact.js 是一个轻量级的 React 替代品,保持与 React 相同的 API。

与 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

与 React 的区别

  • Works in the browser without any transpilation steps
  • Syntactic sugar
    • props, state and context are passed to render()
    • Standard HTML attributes like class and for can be used instead of className and htmlFor
preactjs/preact

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

JavaScript
37384
12 天前
aidenybai/million
TypeScript
17106
9 个月前

An online IDE for rapid web development

JavaScript
13319
21 天前
TypeScript
13003
1 个月前
jaredpalmer/razzle

✨ Create server-rendered universal JavaScript applications with no configuration

JavaScript
11105
1 年前
molefrog/wouter

🥢 A minimalist-friendly ~2.1KB routing for React and Preact

TypeScript
7182
5 天前

Gitalk is a modern comment component based on Github Issue and Preact.

JavaScript
7113
9 个月前

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)

JavaScript
5570
2 个月前

A blazing fast React alternative, compatible with IE8 and React 16.

JavaScript
5428
4 年前

⚡A zero-config bundler for JavaScript applications.

JavaScript
5218
3 年前

👩‍🚀 The tiny all-in-one development tool for modern web apps.

JavaScript
4927
1 年前

😺 Your next Preact PWA starts in 30 seconds.

JavaScript
4682
1 年前

Manage state with style in every framework

TypeScript
4029
9 天前

Create and build modern JavaScript projects with zero initial configuration.

JavaScript
3938
1 年前
omgovich/react-colorful
TypeScript
3298
9 个月前
cristianbote/goober
JavaScript
3186
6 天前

✨ Viselect - A high performance and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies, super small. Support for major frameworks!

TypeScript
2856
1 个月前

🌶 350b / 650b state container with component actions for Preact & React

JavaScript
2852
4 年前