-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4169 from shaedrich/preact
Create topic "Preact.js"
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
aliases: preactjs, preact-js | ||
topic: preact | ||
logo: preact.png | ||
display_name: Preact.js | ||
short_description: Preact.js is a lightweight React alternative with the same API. | ||
related: react, virtual-dom, hmr, jsx, ssr | ||
released: November 14, 2015 | ||
github_url: https://github.com/preactjs/preact | ||
url: https://preactjs.com/ | ||
--- | ||
**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 | ||
* `props`, `state` and `context` are passed to `render()` | ||
* Standard HTML attributes like `class` and `for` can be used instead of `className` and `htmlFor` | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.