Skip to content
项目

关于

Short annotated examples of React concepts

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

React Primer

This little repo is designed to gently introduce developers into the wonderful world of React. Each demo's source is annotated with comments and can be read basically top-to-bottom.

View the Demos

The demos are available online.

Running Locally

Clone the repository and open build/index.html in your browser; the demos are pre-built and checked in to the repo.

Building

Requires Node.js.

npm install && npm start

Then open build/index.html in your browser. The Node process will automatically recompile the demos on any change; check your console output for syntax errors.

Further Reading

The React site has a ton of info, and I recommend checking it out. It also contains more in-depth API documentation.

The "Top-Down Data Flow & shouldComponentUpdate" demo introduces the idea of a top-level data store that causes an application-wide re-render whenever its data changes; this is a nice stepping stone to the flux architecture, including flux libraries like Fluxxor.

探索相关项目

加载中…