Repository navigation
Preact.js
发布于 November 14, 2015
- Repository
- preactjs/preact
- Website
- preactjs.com
- Wikipedia
相关主题
ReactJSX (JavaScript XML)
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
andcontext
are passed torender()
- Standard HTML attributes like
class
andfor
can be used instead ofclassName
andhtmlFor
⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.
Optimize React performance and make your React 70% faster in minutes, not months.
An online IDE for rapid web development
The next-gen web framework.
✨ Create server-rendered universal JavaScript applications with no configuration
🥢 A minimalist-friendly ~2.1KB routing for React and Preact
Gitalk is a modern comment component based on Github Issue and Preact.
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)
A blazing fast React alternative, compatible with IE8 and React 16.
⚡A zero-config bundler for JavaScript applications.
👩🚀 The tiny all-in-one development tool for modern web apps.
CLI for creating reusable react libraries.
😺 Your next Preact PWA starts in 30 seconds.
Manage state with style in every framework
Create and build modern JavaScript projects with zero initial configuration.
🎨 A tiny (2,8 KB) color picker component for React and Preact apps
🥜 goober, a less than 1KB 🎉 css-in-js alternative with a familiar API
✨ 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!
🌶 350b / 650b state container with component actions for Preact & React