Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
React | 213,645 | 66,514 | 19 hours ago | 1,319 | July 27, 2023 | 1,497 | mit | JavaScript | ||
The library for web and native user interfaces. | ||||||||||
Bun | 63,366 | 386 | 11 hours ago | 177 | July 29, 2023 | 1,927 | Zig | |||
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one | ||||||||||
Esbuild | 36,124 | 22 | 2 days ago | 57 | July 26, 2023 | 346 | mit | Go | ||
An extremely fast bundler for the web | ||||||||||
Preact | 35,075 | 5,761 | 3,394 | 2 days ago | 221 | July 09, 2023 | 250 | mit | JavaScript | |
⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM. | ||||||||||
React Three Fiber | 23,947 | 303 | a day ago | 184 | July 26, 2023 | 23 | mit | TypeScript | ||
🇨🇭 A React renderer for Three.js | ||||||||||
React Demos | 16,156 | 2 months ago | JavaScript | |||||||
a collection of simple demos of React.js | ||||||||||
Inferno | 15,918 | 674 | 314 | 11 hours ago | 334 | June 30, 2023 | 34 | mit | JavaScript | |
:fire: An extremely fast, React-like JavaScript library for building modern user interfaces | ||||||||||
Mdx | 15,820 | 1,354 | 2,527 | a day ago | 115 | February 09, 2023 | 24 | mit | JavaScript | |
Markdown for the component era | ||||||||||
React Markdown | 11,200 | 3,628 | 2,310 | 3 days ago | 90 | April 12, 2023 | 4 | mit | JavaScript | |
Markdown component for React | ||||||||||
Mitosis | 9,613 | 17 | 23 days ago | 207 | July 31, 2023 | 155 | mit | TypeScript | ||
Write components once, run everywhere. Compiles to React, Vue, Qwik, Solid, Angular, Svelte, and more. |
React is a JavaScript library for building user interfaces.
Learn how to use React in your project.
React has been designed for gradual adoption from the start, and you can use as little or as much React as you need:
<script>
tag in one minute.You can use React as a <script>
tag from a CDN, or as a react
package on npm.
You can find the React documentation on the website.
Check out the Getting Started page for a quick overview.
The documentation is divided into several sections:
You can improve it by sending pull requests to this repository.
We have several examples on the website. Here is the first one to get you started:
import { createRoot } from 'react-dom/client';
function HelloMessage({ name }) {
return <div>Hello {name}</div>;
}
const root = createRoot(document.getElementById('container'));
root.render(<HelloMessage name="Taylor" />);
This example will render "Hello Taylor" into a container on the page.
You'll notice that we used an HTML-like syntax; we call it JSX. JSX is not required to use React, but it makes code more readable, and writing it feels like writing HTML. If you're using React as a <script>
tag, read this section on integrating JSX; otherwise, the recommended JavaScript toolchains handle it automatically.
The main purpose of this repository is to continue evolving React core, making it faster and easier to use. Development of React happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving React.
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.
Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React.
To help you get your feet wet and get you familiar with our contribution process, we have a list of good first issues that contain bugs that have a relatively limited scope. This is a great place to get started.
React is MIT licensed.