File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ React 是 facebook 开源的一套框架,可总结为以下几个特点:
2121 - [ Redux 跨组件通信之入门篇 —— combineReducers] ( https://github.com/wscats/react-tutorial/tree/master/react/redux/combineReducers )
2222 - [ Redux 跨组件通信之进阶篇 —— Provider 和 connect] ( https://github.com/wscats/react-tutorial/tree/master/react/redux/connetProvider )
2323 - [ Redux 跨组件通信之高级篇 —— 中间件] ( https://github.com/wscats/react-tutorial/tree/master/react/redux/middleware )
24- - [ 项目应用] ( https://wscats.github.io/react/reactERP/index.html#/login )
24+ - [ 项目应用] ( https://wscats.github.io/react-tutorial/react /reactERP/index.html#/login )
Original file line number Diff line number Diff line change @@ -276,4 +276,4 @@ var ChildrenComponent4_2 = React.createClass({
276276});
277277ReactDOM .render (< ParentComponent4/ > , document .getElementById (' div4' ));
278278```
279- [ 效果预览] ( https://wscats.github.io/react/component/src/communication/communication.html )
279+ [ 效果预览] ( https://wscats.github.io/react-tutorial/react /component/src/communication/communication.html )
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ ReactDOM.render(
6161 document .getElementById (' app' )
6262)
6363```
64- [ 效果预览] ( https://wscats.github.io/react/component/src/define/define.html )
64+ [ 效果预览] ( https://wscats.github.io/react-tutorial/react /component/src/define/define.html )
6565
6666#### 组件小结
6767- 组件名首字母必须为大写
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Component1 extends React.Component{
2020
2121ReactDOM .render (< Component1/ > , document .getElementById (' div1' ));
2222```
23- [ 效果预览] ( https://wscats.github.io/react/component/src/event/event.html )
23+ [ 效果预览] ( https://wscats.github.io/react-tutorial/react /component/src/event/event.html )
2424
2525## 事件对象 —— event
2626React 在事件方法调用上默认会传一个形参` events ` ,该对象是一个合成事件,所以不需要担心浏览器兼容的问题。
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class Component1 extends React.Component{
4949 }
5050}
5151```
52- [ 效果预览] ( https://wscats.github.io/react/component/src/form/input.html )
52+ [ 效果预览] ( https://wscats.github.io/react-tutorial/react /component/src/form/input.html )
5353
5454## textarea 元素
5555在普通 HTML 中,` textarea ` 元素是节点文本值
Original file line number Diff line number Diff line change @@ -161,4 +161,4 @@ var UnmountingComponent = React.createClass({
161161
162162ReactDOM .render (< UnmountingComponent/ > , document .getElementById (' div3' ));
163163```
164- [ 效果预览] ( https://wscats.github.io/react/component/src/lifecycle/lifecycle.html )
164+ [ 效果预览] ( https://wscats.github.io/react-tutorial/react /component/src/lifecycle/lifecycle.html )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export default class CP extends React.Component{
3737 }
3838}
3939```
40- [ 效果预览] ( https://wscats.github.io/react/component/src/render/condition-rendering.html )
40+ [ 效果预览] ( https://wscats.github.io/react-tutorial/react /component/src/render/condition-rendering.html )
4141
4242## 组件渲染 —— 列表渲染
4343React 没有指令,所以在列表渲染时得借助数组来完成。
@@ -214,4 +214,4 @@ ReactDOM.render(
214214 < span> Sam< / span>
215215 < / Component1> , document .getElementById (' div1' ));
216216```
217- [ 效果预览] ( https://wscats.github.io/react/component/src/props/props.html )
217+ [ 效果预览] ( https://wscats.github.io/react-tutorial/react /component/src/props/props.html )
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ class Component1 extends React.Component{
4444 }
4545}
4646```
47- [ 效果预览] ( https://wscats.github.io/react/component/src/state/state.html )
47+ [ 效果预览] ( https://wscats.github.io/react-tutorial/react /component/src/state/state.html )
Original file line number Diff line number Diff line change @@ -103,4 +103,4 @@ jsx 正确写法应该是这样的
103103 </script >
104104 </body >
105105```
106- [ 效果预览] ( https://wscats.github.io/react/jsx/jsx.html )
106+ [ 效果预览] ( https://wscats.github.io/react-tutorial/react /jsx/jsx.html )
Original file line number Diff line number Diff line change 2727
2828源码下载:https://github.com/wscats/react-tutorial/tree/master/reactreact/redux/middleware
2929
30- [ 效果预览] ( https://wscats.github.io/react/redux/middleware/index.html )
30+ [ 效果预览] ( https://wscats.github.io/react-tutorial/react /redux/middleware/index.html )
3131
3232源码下载后执行下面步骤例可查看效果
3333- ` npm install `
You can’t perform that action at this time.
0 commit comments