react源码解析001 - README

react源码解析

A declarative, efficient, and flexible JavaScript library for building user interfaces.css

declarative:声明式。React将此做为第一个词,可见其重要性。declarative对应imperative(命令式),移步这里看看什么是 declarative Javascript.html

对于react,declarative的含义是:declarative UI.前端

Declarative views make your code more predictable, simpler to understand, and easier to debug.react

这说的是JSX语法,可以在JS里面直接写html和css,是一次大胆的创新。JSX让人写前端代码写得直呼过瘾。jquery

React is flexible and can be used in a variety of projects. You can create new apps with it, but you can also gradually introduce it into an existing codebase without doing a rewrite.web

你没有必要非在整个网页或者整个项目中使用react。你能够只在一个dom节点中使用,而后慢慢地去作重构。因此,使用react和使用jquery,angular并不冲突。app

相关文章
相关标签/搜索