bởi admin lúc Fri, May 11 '18 6:13 AM | Lần xem 31 | Lần tải 0
bởi admin lúc Fri, May 11 '18 6:13 AM

[Ebook]
ReactJS qua Ví Dụ_
Xây dựng Ứng Dụng Web hiện đại với React
Table of Contents
Preface v Chapter 1: Getting Started with React 1 What is React? 2 When Shawn meets Mike and ReactJS 3 Requiring React library 6 Building our first component 6 Back to work 10 Displaying static data 12 Passing data to components 15 Summary 20 Chapter 2: JSX in Depth 21 Why JSX? 22 Transforming JSX into JavaScript 23 HTML tags vs React components 24 Self closing tag 25 Multiple components 25 JavaScript expressions 31 Namespaced components 32 Spread attributes 35 Styles in JSX 36 JSX Gotchas 38 Conditionals in JSX 40 Non-DOM attributes 41 Summary 43 Chapter 3: Data Flow and Life Cycle Events 45 Data flow in React 46 Props validation 47
www.it-ebooks.info
Table of Contents
[ ii ]
Specifying default props 49 Modifying this.props.children 50 State 51 Setting initial state 52 Setting state 52 Avoiding state 52 State versus props 53 Component life cycle overview 54 Component life cycle methods 55 Summary 62 Chapter 4: Composite Dynamic Components and Forms 63 Forms in React 63 Setting up the application 64 Getting started with forms 66 Interactive props 68 Controlled components 68 Uncontrolled components 70 Getting started with form wizard 70 Form events 74 Parent Child relationship 76 Form validation 79 Shipping details step 81 Delivery details step 85 Summary 90 Chapter 5: Mixins and the DOM 91 Back at the office 91 Adding a modal 103 Refs 105 Summary 107 Chapter 6: React on the Server 109 Getting React to render on server 109 On the server 124 Summary 126 Chapter 7: React Addons 127 Getting started with Addons 127 Immutability helpers 128 Available commands 132 Cloning components 133 Helpers for testing React apps 139 Setting up Jest 139
www.it-ebooks.info
Table of Contents
[ iii ]
Testing structure of React components 141 Testing behavior of React components 142 Shallow rendering 144 Summary 145 Chapter 8: Performance of React Apps 147 Performance of React apps 147 Virtual DOM 148 The PERF addon 148 DOM operations performed by React 150 Time taken to render all the components 151 Time wasted by React 152 The shouldComponentUpdate hook 157 PureRenderMixin 161 The PureRenderMixin anti pattern 163 Immutable data 164 Summary 166 Chapter 9: React Router and Data Models 167 A new adventure 168 Creating Backbone models 170 Incorporating defined Backbone models 172 Data models and Backbone 182 Summary 184 Chapter 10: Animation 185 Fun stuff at Adequate LLC! 186 Model updates 187 Animate 193 Summary 201 Chapter 11: React Tools 203 Development tools 203 Using Babel for ES6 and JSX 204 ESLint 205 React Dev Tools 208 Build tools 210 What is Webpack? 210 Webpack configuration 211 Loaders 213 Hot module replacement 214 Summary 218
www.it-ebooks.info
Table of Contents
[ iv ]
Chapter 12: Flux 219 Flux architecture and unidirectional flow 220 Flux actions 225 Flux stores 230 Summary 242 Chapter 13: Redux and React 243 Redux 244 Setting up Redux 246 Summary 258 Index 259
.zip [Ebook] ReactJS qua Ví Dụ ...
Kích thước: 2.39 mb
Lần tải: 0 lần
Download