Learning React Functional Web Development with React and Redux 无水印pdf

所需积分/C币:16 2017-10-06 20:59:55 7.44MB PDF
收藏 收藏 2
举报

Learning React Functional Web Development with React and Redux 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Learning React Functional Web development with react and redux Alex banks and eve porcello Beijing. Boston. Farnham. Sebastopol. Tokyo OREILLY Learning react Dy Alex Banks and Eve Porcello Copyright C 2017 Alex Banks and Eve Porcello. All rights reserved Printed in the united states of america Published by O reilly Media, InC,1005 Gravenstein Highway North, Sebastopol, CA 95472 O Reilly books may be purchased for educational, business, or sales promotional use. Online editions are alsoavailableformosttitles(http://oreilly.com/safari).Formoreinformationcontactourcorporate/insti tutionalsalesdepartment800-998-9938orcorporate@oreilly.com Editor: Allyson MacDonald Indexer: Word Co Indexing Services Production Editor: Melanie Yarbrough Interior Designer: David Futato Copyeditor: Colleen Toporek Cover Designer: Karen Montgomery Proofreader: rachel head Illustrator rebecca demarest May2017: First edition Revision History for the First Editior 2017-04-26: First Release Seehttp://oreilly.com/catalog/errata.csp?isbn=9781491954621forreleasedetails The O Reilly logo is a registered trademark of OReilly Media, Inc. Learning React, the cover image, and related trade dress are trademarks of o reilly media, Inc While the publisher and the authors have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights 978-1-491-95462-1 Table of contents Preface 1. Welcome to react Obstacles and roadblocks React Is a Library New ECMaScript Syntax Popularity of Functional javaScript JavaScript Tooling Fatigue Why React Doesnt Have to Be Hard to Learn Reacts future Keeping up with the changes Working with the Files File repository React Developer Tools 11222233444569 Installing Node. js 2. Emerging JavaScript. Declaring variables in ES6 10 const let Template strings 12 Default parameters 13 Arrow functions Transpiling ES6 17 ES6 Objects and arrays 19 Destructuring Assignment 19 Object Literal Enhancement The Spread Operator 22 Promises 24 Classes 25 ES6 Modules 27 Commons 28 3. Functional Programming with JavaScript ,31 What It means to be functional 32 Imperative versus Declarative 34 Functional Concepts 36 Immutability 36 Pure functions 38 Data transformations 41 Higher-Order Functions 48 Recursion Composition 52 Putting It All Together 54 4. Pure react 59 Page Setup 59 The Virtual dom React Elements 62 ReactOR 64 Children 65 Constructing Elements with Data 67 React components 8 React. create Class React Component 72 Stateless Functional Components DOM Rendering 74 Factories 77 5. React with jsx React Elements as jSX 81 JSX Tips 82 Babel 84 Recipes as jsx 85 Intro to Webpack 93 Webpack loaders 94 Recipes app with a Webpack build 94 6. Props, State, and the Component Tree. 109 Property Validation 109 iv Table of Contents Validating props with createClass 110 Default p 114 Custom Property validation 115 ES6 Classes and Stateless Functional Components Refs se data flow 21 Refs in Stateless Functional components 123 React state management 123 Introducing Component State 124 Initializing State from Properties 128 State Within the Component Tree 130 Color Organizer App Overview 130 Passing Data Back Up the Component Tree ee Passing properties down the component ti 131 134 7. Enhancing Components.......................... 141 Component Lifecycle 141 Mounting Lifecycle 142 Updating Lifecycle 146 React. children 157 JavaScript Library Integration 158 Making requests with Fetch 159 Incorporating a d3 Timeline 160 Higher-Order Components 166 Managing State Outside of React 172 Rendering a Clock 173 Flux 174 Views 176 Actions and Action creators 177 Dispatcher 177 Stores 178 Putting It All Together 179 Flux Implementations 180 8. Redux 83 State 184 Actions 187 Action Payload Data 189 Reducers 190 The Color reducer 193 The Colors reducer 195 The Sort reducer 197 Table of conten The Store 198 Subscribing to Stores 201 Saving to localStorage 202 Action creators 203 Middleware 206 Applying Middleware to the Store 207 9. React redux 211 Explicitly Passing the Store 213 Passing the Store via Context 216 Presentational Versus Container Components 220 The React Redux provider 223 React redux connect 224 10. Testing 229 ELInt 229 Testing Redux 233 Test-Driven Development 233 Testing reducers 234 Testing the store 242 Testing react Components 245 Setting Up the Jest Environment 245 Enzyme 247 king Components 249 Snapshot Testing 258 USing Code Coverage 262 11. React router 273 Incorporating the router 274 Router properties 277 Nesting routes 279 Using a Page Template 279 Subsections and Submenus 281 Router parameters 286 Adding Color Details Page 286 Moving Color Sort State to Router 292 12. React and the server ,297 Isomorphism versus Universalism 297 Server Rendering react 301 Universal Color Organizer 306 Universal redux 308 Table of contents Universal Routing 310 Communicating with the Server 318 Completing Actions on the Server 318 Actions with redux thunks 321 329 Table of contents|ⅶi

...展开详情
试读 127P Learning React Functional Web Development with React and Redux 无水印pdf
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    抢沙发
    一个资源只可评论一次,评论内容不能少于5个字
    上传资源赚积分,得勋章
    最新推荐
    Learning React Functional Web Development with React and Redux 无水印pdf 16积分/C币 立即下载
    1/127
    Learning React Functional Web Development with React and Redux 无水印pdf第1页
    Learning React Functional Web Development with React and Redux 无水印pdf第2页
    Learning React Functional Web Development with React and Redux 无水印pdf第3页
    Learning React Functional Web Development with React and Redux 无水印pdf第4页
    Learning React Functional Web Development with React and Redux 无水印pdf第5页
    Learning React Functional Web Development with React and Redux 无水印pdf第6页
    Learning React Functional Web Development with React and Redux 无水印pdf第7页
    Learning React Functional Web Development with React and Redux 无水印pdf第8页
    Learning React Functional Web Development with React and Redux 无水印pdf第9页
    Learning React Functional Web Development with React and Redux 无水印pdf第10页
    Learning React Functional Web Development with React and Redux 无水印pdf第11页
    Learning React Functional Web Development with React and Redux 无水印pdf第12页
    Learning React Functional Web Development with React and Redux 无水印pdf第13页
    Learning React Functional Web Development with React and Redux 无水印pdf第14页
    Learning React Functional Web Development with React and Redux 无水印pdf第15页
    Learning React Functional Web Development with React and Redux 无水印pdf第16页
    Learning React Functional Web Development with React and Redux 无水印pdf第17页
    Learning React Functional Web Development with React and Redux 无水印pdf第18页
    Learning React Functional Web Development with React and Redux 无水印pdf第19页
    Learning React Functional Web Development with React and Redux 无水印pdf第20页

    试读已结束,剩余107页未读...

    16积分/C币 立即下载 >