Nowa:极简教程,立即上手 webpack & react 开发生态环境

React 学习笔记 1 React 是什么

2017-11-28  本文已影响42人  光剑书架上的书

实例

https://codepen.io/pen

image.png

https://github.com/facebook/react

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

https://reactjs.org

React is a JavaScript library for building user interfaces.

Learn how to use React in your own project.

传统的浏览器 DOM 操作与维护复杂性越来越高。
React 的出现正式为了解决 DOM 操作的问题。

React 的闪光点是在应用数据发生变化的时候。React 中有个 state 的概念。当 state 发生改变时,React 会自动 render 用户界面。这个时候,数据本身的变化成为我们真正需要关注的点。

JSX 语法

https://reactjs.org/docs/introducing-jsx.html

https://reactjs.org/docs/jsx-in-depth.html

React.Component

https://reactjs.org/docs/react-component.html

上一篇 下一篇

猜你喜欢

热点阅读