React: Up & Running Год издания: 2016 Автор: Stefanov S. Издательство: O'Reilly Media ISBN: 978-1491931820 Язык: Английский Формат: PDF Качество: Издательский макет или текст (eBook) Интерактивное оглавление: Да Количество страниц: 222 Описание: Hit the ground running with React, the open-source technology from Facebook for building rich web applications fast. With this practical guide, Facebook web developer Stoyan Stefanov teaches you how to build components--React's basic building blocks--and organize them into maintainable, large-scale apps. If you're familiar with basic JavaScript syntax, you're ready to get started. Once you understand how React works, you'll build a complete custom Whinepad app that helps users rate wines and keep notes. You'll quickly learn why some developers consider React the key to the web app development puzzle. - Set up React and write your first "Hello world" web app - Create and use custom React components alongside generic DOM components - Build a data table component that lets you edit, sort, search, and export its contents - Use the JSX syntax extension as an alternative to function calls - Set up a lean, low-level build process that helps you focus on React - Build a complete custom app that lets you store data on the client - Use ESLint, Flow, and Jest tools to check and test your code as your app evolves - Manage communication between components with Flux
Примеры страниц
Оглавление
Table of Contents Chapter 1Hello World Setup Hello React World What Just Happened? React.DOM.* Special DOM Attributes React DevTools Browser Extension Next: Custom Components Chapter 2The Life of a Component Bare Minimum Properties propTypes State A Stateful Textarea Component A Note on DOM Events Props Versus State Props in Initial State: An Anti-Pattern Accessing the Component from the Outside Changing Properties Mid-Flight Lifecycle Methods Lifecycle Example: Log It All Lifecycle Example: Use a Mixin Lifecycle Example: Using a Child Component Performance Win: Prevent Component Updates PureRenderMixin Chapter 3Excel: A Fancy Table Component Data First Table Headers Loop Debugging the Console Warning Adding Content Sorting Sorting UI Cues Editing Data Search Instant Replay Download the Table Data Chapter 4JSX Hello JSX Transpiling JSX Babel Client Side About the JSX transformation JavaScript in JSX Whitespace in JSX Comments in JSX HTML Entities Spread Attributes Returning Multiple Nodes in JSX JSX Versus HTML Differences JSX and Forms Excel Component in JSX Chapter 5Setting Up for App Development A Boilerplate App Installing Prerequisites Let’s Build Deployment Moving On Chapter 6Building an App Whinepad v.0.0.1 The Components App Config : New and Improved Wrapping It All Up Chapter 7Lint, Flow, Test, Repeat package.json ESLint Flow Testing Chapter 8Flux The Big Idea Another Look at Whinepad The Store Actions Flux Recap Immutable
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum