{"repo":"preactjs/preact","free":true,"listed":false,"github":"https://github.com/preactjs/preact","clone":"git clone https://github.com/preactjs/preact.git","description":"⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.","language":"JavaScript","stars":38819,"topics":["preact","jsx","react","virtual-dom","components","dom","vdom"],"license":"MIT","category":"ui-components","readme_excerpt":"[!NOTE] This is the branch for the upcoming release, for patches to v10 you need the v10.x branch Fast 4kB alternative to React with the same modern API. All the power of Virtual DOM components, without the overhead: - Familiar React API & patterns: ES6 Class, hooks, and Functional Components - Extensive React compatibility via a simple [preact/compat] alias - Everything you need: JSX, VDOM , [DevTools], HMR , SSR . - Highly optimized diff algorithm and seamless hydration from Server Side Rendering - Supports all modern browsers - Transparent asynchronous rendering with a pluggable scheduler 💁 More information at the Preact Website ➞ You can find some awesome libraries in the awesome-preact list :sunglasses: --- Getting Started 💁 Note: You don't need ES2015 to use Preact... but give it a try! Tutorial: Building UI with Preact With Preact, you create user interfaces by assembling trees of components and elements. Components are functions or classes that return a description of what their tree should output. These descriptions are typically written in JSX (shown underneath), or HTM which leverages standard JavaScript Tagged Templates. Both syntaxes can express trees of elements with \"props\" (similar to HTML attributes) and children. To get started using Preact, first look at the render() function. This function accepts a tree description and creates the structure described. Next, it appends this structure to a parent DOM element provided as the second argument. Future calls t","default_branch":null,"files":null,"tree":[],"storefront":"/r/preactjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/preactjs/preact/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}