[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-248":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},248,"react","facebook\u002Freact","facebook","The library for web and native user interfaces.","https:\u002F\u002Freact.dev",null,"JavaScript",245644,51180,6628,835,0,26,317,775,263,120,"MIT License",false,"main",true,[27,28,29,30,5,31],"declarative","frontend","javascript","library","ui","2026-06-07 04:00:14","# [React](https:\u002F\u002Freact.dev\u002F) &middot; [![GitHub license](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg)](https:\u002F\u002Fgithub.com\u002Ffacebook\u002Freact\u002Fblob\u002Fmain\u002FLICENSE) [![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Freact.svg?style=flat)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Freact) [![(Runtime) Build and Test](https:\u002F\u002Fgithub.com\u002Ffacebook\u002Freact\u002Factions\u002Fworkflows\u002Fruntime_build_and_test.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Ffacebook\u002Freact\u002Factions\u002Fworkflows\u002Fruntime_build_and_test.yml) [![(Compiler) TypeScript](https:\u002F\u002Fgithub.com\u002Ffacebook\u002Freact\u002Factions\u002Fworkflows\u002Fcompiler_typescript.yml\u002Fbadge.svg?branch=main)](https:\u002F\u002Fgithub.com\u002Ffacebook\u002Freact\u002Factions\u002Fworkflows\u002Fcompiler_typescript.yml) [![PRs Welcome](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPRs-welcome-brightgreen.svg)](https:\u002F\u002Flegacy.reactjs.org\u002Fdocs\u002Fhow-to-contribute.html#your-first-pull-request)\n\nReact is a JavaScript library for building user interfaces.\n\n* **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.\n* **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.\n* **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](https:\u002F\u002Fnodejs.org\u002Fen) and power mobile apps using [React Native](https:\u002F\u002Freactnative.dev\u002F).\n\n[Learn how to use React in your project](https:\u002F\u002Freact.dev\u002Flearn).\n\n## Installation\n\nReact has been designed for gradual adoption from the start, and **you can use as little or as much React as you need**:\n\n* Use [Quick Start](https:\u002F\u002Freact.dev\u002Flearn) to get a taste of React.\n* [Add React to an Existing Project](https:\u002F\u002Freact.dev\u002Flearn\u002Fadd-react-to-an-existing-project) to use as little or as much React as you need.\n* [Create a New React App](https:\u002F\u002Freact.dev\u002Flearn\u002Fstart-a-new-react-project) if you're looking for a powerful JavaScript toolchain.\n\n## Documentation\n\nYou can find the React documentation [on the website](https:\u002F\u002Freact.dev\u002F).\n\nCheck out the [Getting Started](https:\u002F\u002Freact.dev\u002Flearn) page for a quick overview.\n\nThe documentation is divided into several sections:\n\n* [Quick Start](https:\u002F\u002Freact.dev\u002Flearn)\n* [Tutorial](https:\u002F\u002Freact.dev\u002Flearn\u002Ftutorial-tic-tac-toe)\n* [Thinking in React](https:\u002F\u002Freact.dev\u002Flearn\u002Fthinking-in-react)\n* [Installation](https:\u002F\u002Freact.dev\u002Flearn\u002Finstallation)\n* [Describing the UI](https:\u002F\u002Freact.dev\u002Flearn\u002Fdescribing-the-ui)\n* [Adding Interactivity](https:\u002F\u002Freact.dev\u002Flearn\u002Fadding-interactivity)\n* [Managing State](https:\u002F\u002Freact.dev\u002Flearn\u002Fmanaging-state)\n* [Advanced Guides](https:\u002F\u002Freact.dev\u002Flearn\u002Fescape-hatches)\n* [API Reference](https:\u002F\u002Freact.dev\u002Freference\u002Freact)\n* [Where to Get Support](https:\u002F\u002Freact.dev\u002Fcommunity)\n* [Contributing Guide](https:\u002F\u002Flegacy.reactjs.org\u002Fdocs\u002Fhow-to-contribute.html)\n\nYou can improve it by sending pull requests to [this repository](https:\u002F\u002Fgithub.com\u002Freactjs\u002Freact.dev).\n\n## Examples\n\nWe have several examples [on the website](https:\u002F\u002Freact.dev\u002F). Here is the first one to get you started:\n\n```jsx\nimport { createRoot } from 'react-dom\u002Fclient';\n\nfunction HelloMessage({ name }) {\n  return \u003Cdiv>Hello {name}\u003C\u002Fdiv>;\n}\n\nconst root = createRoot(document.getElementById('container'));\nroot.render(\u003CHelloMessage name=\"Taylor\" \u002F>);\n```\n\nThis example will render \"Hello Taylor\" into a container on the page.\n\nYou'll notice that we used an HTML-like syntax; [we call it JSX](https:\u002F\u002Freact.dev\u002Flearn#writing-markup-with-jsx). JSX is not required to use React, but it makes code more readable, and writing it feels like writing HTML.\n\n## Contributing\n\nThe 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.\n\n### [Code of Conduct](https:\u002F\u002Fcode.fb.com\u002Fcodeofconduct)\n\nFacebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https:\u002F\u002Fcode.fb.com\u002Fcodeofconduct) so that you can understand what actions will and will not be tolerated.\n\n### [Contributing Guide](https:\u002F\u002Flegacy.reactjs.org\u002Fdocs\u002Fhow-to-contribute.html)\n\nRead our [contributing guide](https:\u002F\u002Flegacy.reactjs.org\u002Fdocs\u002Fhow-to-contribute.html) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React.\n\n### [Good First Issues](https:\u002F\u002Fgithub.com\u002Ffacebook\u002Freact\u002Flabels\u002Fgood%20first%20issue)\n\nTo help you get your feet wet and get you familiar with our contribution process, we have a list of [good first issues](https:\u002F\u002Fgithub.com\u002Ffacebook\u002Freact\u002Flabels\u002Fgood%20first%20issue) that contain bugs that have a relatively limited scope. This is a great place to get started.\n\n### License\n\nReact is [MIT licensed](.\u002FLICENSE).\n","React 是一个用于构建用户界面的 JavaScript 库。它通过声明式编程简化了交互式 UI 的创建过程，使得开发者能够根据应用状态设计简单的视图，并在数据变化时高效地更新和渲染组件。React 采用组件化开发模式，支持封装具有独立状态管理能力的组件，并通过组合这些组件来构建复杂的用户界面。此外，React 不对技术栈的其他部分做假设，因此可以轻松地将 React 集成到现有项目中或使用其构建新的 Web 应用、服务器端渲染以及移动应用程序（通过 React Native）。React 适用于需要快速响应用户输入并提供流畅体验的各种前端应用场景。",2,"2026-06-01 02:31:52","top_all"]