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

Download
[Ebook] Lập Trình Ứng Dụng Web Full Stack với
Mongo,
Express,
React,
và Node

About the Author xvii
Chapter 1: Introduction 1 Chapter 2: Hello World 17 Chapter 3: React Components 37 Chapter 4: React State 55 Chapter 5: Express REST APIs 69 Chapter 6: Using MongoDB 93 Chapter 7: Modularization and Webpack 115 Chapter 8: Routing with React Router 151 Chapter 9: Forms 173 Chapter 10: React-Bootstrap 207 Chapter 11: Server Rendering 245 Chapter 12: Advanced Features 275 Chapter 13: Looking Ahead 319
Index 325
vii
Contents
About the Author xvii
Chapter 1: Introduction 1 What Is MERN? 1 Who Should Read This Book 2 Structure of the Book 2 Conventions 3 What You Need 5 MERN Components 5 React 5 Node js 7 Express 9 MongoDB 10 Tools and Libraries 12 Why MERN? 13 JavaScript Everywhere 13 JSON Everywhere 14 Node js Performance 14 The npm Ecosystem 14 Isomorphic 14 It’s not a Framework! 15 Summary 15
Contents
viii
Chapter 2: Hello World 17 Server-Less Hello World 17 Server Setup 20 nvm 21 Node js 21 Project 22 npm 22 Express 24 Build-Time JSX Compilation 26 Separate Script File 27 Transform 28 Automate 29 React Library 30 ES2015 30 Summary 33 Answers to Exercises 34 Exercise: JSX 34 Exercise: npm 34 Exercise: Express 35 Exercise: Babel 35 Exercise: ES2015 36 Chapter 3: React Components 37 Issue Tracker 37 React Classes 38 Composing Components 40
Contents
ix
Passing Data 42 Using Properties 42 Property Validation 44 Using Children 45 Dynamic Composition 47 Summary 51 Answers to Exercises 51 Exercise: React Classes 51 Exercise: Passing Data 52 Exercise: Dynamic Composition 52 Chapter 4: React State 55 Setting State 55 Async State Initialization 58 Event Handling 60 Communicating from Child to Parent 60 Stateless Components 63 Designing Components 65 State vs props 65 Component Hierarchy 65 Communication 66 Stateless Components 66 Summary 66 Answers to Exercises 67 Exercise: Setting State 67 Exercise: Communicate Child to Parent
.zip [Ebook] Lập Trình Ứng Dụn ...
Kích thước: 2.59 mb
Lần tải: 0 lần
Download