reactjs101 icon indicating copy to clipboard operation
reactjs101 copied to clipboard

從零開始學 ReactJS(ReactJS 101)是一本希望讓初學者一看就懂的 React 中文入門教學書,由淺入深學習 ReactJS 生態系 (Flux, Redux, React Router, ImmutableJS, React Native, Relay/GraphQL etc.)。

Results 60 reactjs101 issues
Sort by recently updated
recently updated
newest added

凱迪老師你好 我是你在hahow上的學生 看到你的從零開始學React的教學,剛好對React有些興趣 所以就跟著你的教學文件學習 最近學習到Ch05 React Router 入門實戰教學碰到一些問題 在執行到npm start時,一直執行失敗,無法啟動web server 我是直接將github上面的資料下載(放到我mac的Documents資料夾) 依序按照範例安裝npm套件 但是最終執行卻失敗了(重複安裝執行五六次...) 不曉得原因為何? 有空的時候可以麻煩你指點迷津 謝謝~ 資料夾截圖: command line錯誤訊息: ![group](https://cloud.githubusercontent.com/assets/16816058/20200883/fe622636-a7ee-11e6-90e9-0f860aa639ed.png) chrome錯誤訊息: ![2016-11-11 9 13 39](https://cloud.githubusercontent.com/assets/16816058/20200912/34101784-a7ef-11e6-989d-5461473f8d34.png)

这里不是因为需要绑定this,而是因为在 setInterval 时候,this.tick 被作为了一个单纯的函数。 见: var a = { name: 'Xaber', say() { alert(this.name) } }; setTimeout(a.say, 1000);

ES5可以写成: var Todo = React.createClass({ onChange: function(inputName, e){ this.setState({ [iputName + 'Value']:e.target.value, }) } }) ES6可以写成: class Todo extends React.Component({ onChange(inputName, e){ this.setState({ [`${inputName}Value`]: e.targe.value, }) } }) 这样区别不大

1. Ch7 的範例 Main.js 應該是配合 Ch8 Container 的部分,故將它移到 Ch8,並修改 Ch7 的部分 2. Ch7 的範例 todoHeader.js 和 todoList.js, 刪除寫錯的 import,和多餘的 export 3. Ch7 的範例 uiReducers.js 修正 import 的部分,另外如果 import 的物件是 undefined,reducers...

修复 markdown 排版问题

[React Component 規格](https://github.com/kdchang/reactjs101/blob/master/Ch04/react-component-life-cycle.md#react-component-規格) `getElmentById` => `getElementById`

实现 Appendix04 教程中的示例(PS:简体中文版的那个库是不维护了吗?)

針對Ch03有兩個建議: 1. 建議可在初步介紹prop之後,再介紹PropType防呆機制 2. 防呆機制的程式範例中,MyComponent最好能真的使用到todo與name這兩個prop PS. 教學寫得很棒,看得很過癮

http://stackoverflow.com/questions/40670018/error-in-react-tap-event-plugin-src-injecttapeventplugin-js