
React – A JavaScript library for building user interfaces
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.
學習指南:React 介紹
React 是什麼? React 是一個陳述式、高效且具有彈性的 JavaScript 函式庫,用以建立使用者介面。 它讓你使用小巧而獨立的「component」,來建立複雜的 UI。 React 有數種不同的 component,但讓 …
Lists and Keys - React
If you choose not to assign an explicit key to list items then React will default to using indexes as keys. Here is an in-depth explanation about why keys are necessary if you’re interested in learning more.
Accessibility – React
Our React applications continuously modify the HTML DOM during runtime, sometimes leading to keyboard focus being lost or set to an unexpected element. In order to repair this, we need to …
Hello World – React
In this guide, we will examine the building blocks of React apps: elements and components. Once you master them, you can create complex apps from small reusable pieces.
Test Utilities – React
We recommend using React Testing Library which is designed to enable and encourage writing tests that use your components as the end users do. For React versions <= 16, the Enzyme library makes …
React - Versions
React Versions A complete release history for React is available on GitHub. Documentation for recent releases can also be found below. See our FAQ for information about our versioning policy and …
测试概览 – React - reactjs.org
React 测试库 是一组能让你不依赖 React 组件具体实现对他们进行测试的辅助工具。 它让重构工作变得轻而易举,还会推动你拥抱有关无障碍的最佳实践。
Styling and CSS – React
Note that this functionality is not a part of React, but provided by third-party libraries. React does not have an opinion about how styles are defined; if in doubt, a good starting point is to define your …
Forms – React
This can become particularly annoying when you are converting a preexisting codebase to React, or integrating a React application with a non-React library. In these situations, you might want to check …