facebook/react
Fork: 46955 Star: 229273 (更新于 2024-11-15 22:00:38)
license: MIT
Language: JavaScript .
The library for web and native user interfaces.
最后发布版本: v18.3.1 ( 2024-04-27 03:53:42)
React ·
React is a JavaScript library for building user interfaces.
- Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
- Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
- Learn Once, Write Anywhere: We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code. React can also render on the server using Node and power mobile apps using React Native.
Learn how to use React in your project.
Installation
React has been designed for gradual adoption from the start, and you can use as little or as much React as you need:
- Use Quick Start to get a taste of React.
- Add React to an Existing Project to use as little or as much React as you need.
- Create a New React App if you're looking for a powerful JavaScript toolchain.
Documentation
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:
- Quick Start
- Tutorial
- Thinking in React
- Installation
- Describing the UI
- Adding Interactivity
- Managing State
- Advanced Guides
- API Reference
- Where to Get Support
- Contributing Guide
You can improve it by sending pull requests to this repository.
Examples
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.
Contributing
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.
Code of Conduct
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.
Contributing Guide
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.
Good First Issues
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.
License
React is MIT licensed.
最近版本更新:(数据更新于 2024-10-04 00:10:16)
2024-04-27 03:53:42 v18.3.1
2024-04-27 03:48:51 v18.3.0
2022-06-15 03:54:21 v18.2.0
2022-04-27 05:15:00 v18.1.0
2022-03-30 01:22:34 v18.0.0
2021-03-23 06:00:26 v17.0.2
2021-03-23 05:59:46 v17.0.1
2020-10-21 04:45:11 v17.0.0
2020-10-15 03:58:32 v16.14.0
2020-10-15 03:57:50 0.14.10
主题(topics):
declarative, frontend, javascript, library, react, ui
facebook/react同语言 JavaScript最近更新仓库
2024-11-18 14:26:02 projectdiscovery/nuclei-templates
2024-11-17 14:42:23 koodo-reader/koodo-reader
2024-11-16 02:31:01 bia-pain-bache/BPB-Worker-Panel
2024-11-15 00:07:06 MHSanaei/3x-ui
2024-11-14 07:15:06 gaogaotiantian/biliscope
2024-11-13 05:41:28 nodejs/node