Getting Started with React

Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 29. April 2016
  • |
  • 212 Seiten
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78528-410-6 (ISBN)
A light but powerful way to build dynamic real-time applications using ReactJSAbout This BookLearn how to develop powerful JavaScript applications using ReactJSIntegrate a React-based app with an external API (Facebook login) while using React components, with the Facebook developer appImplement the Reactive paradigm to build stateless and asynchronous apps with ReactWho This Book Is ForThis book is for any front-end web or mobile-app developer who wants to learn ReactJS. Knowledge of basic JavaScript will give you a good head start with the book.What You Will LearnUnderstand the ReactJS basics through an overviewInstall and create your first React componentRefactor the ReactJS component using JSXIntegrate your React application with the Facebook login and Graph API, then fetch data from your liked pages in Facebook and display them in a browserHandle UI elements events with React, respond to users input, and create stateful componentsUse some core lifecycle events for integration and find out about ES6 syntaxes in the React worldUnderstand the FLUX architecture and create an application using FLUX with ReactMake a component more reusable with mixins and validation helpers and structure your components properlyExplore techniques to test your ReactJS codeDeploy your code using webpack and GulpIn DetailReactJS, popularly known as the V (view) of the MVC architecture, was developed by the Facebook and Instagram developers. It follows a unidirectional data flow, virtual DOM, and DOM difference that are generously leveraged in order to increase the performance of the UI.Getting Started with React will help you implement the Reactive paradigm to build stateless and asynchronous apps with React. We will begin with an overview of ReactJS and its evolution over the years, followed by building a simple React component. We will then build the same react component with JSX syntax to demystify its usage. You will see how to configure the Facebook Graph API, get your likes list, and render it using React.Following this, we will break the UI into components and you'll learn how to establish communication between them and respond to users input/events in order to have the UI reflect their state. You'll also get to grips with the ES6 syntaxes.Moving ahead, we will delve into the FLUX and its architecture, which is used to build client-side web applications and complements React's composable view components by utilizing a unidirectional data flow. Towards the end, you'll find out how to make your components reusable, and test and deploy them into a production environment. Finally, we'll briefly touch on other topics such as React on the server side, Redux and some advanced concepts.Style and approachThe book follows a step-by-step, practical, tutorial approach with examples that explain the key concepts of ReactJS. Each topic is sequentially explained and contextually placed to give sufficient details of ReactJS.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
978-1-78528-410-6 (9781785284106)
178528410X (178528410X)
weitere Ausgaben werden ermittelt
Doel Sengupta is a software programmer and is working in the industry for over 7 years, as a DevOps engineer and as a developer building enterprise level Web and mobile applications using RubyonRails and Rhomobile, Chef. Currently she is exploring the Javascript ecosystem. She has been a speaker in Ruby conferences. She finds interest in life sciences and has publications of her work in customised human joint prostheses design using Ansys & Mimics. She is an avid blogger ( writing about her technical and not-so-technical passions like culinary, photography, films. Follow her on twitter @doelsengupta. Manu Singhal has been a programmer for 8 years and loves to code on Ruby and React. These days, he is busy cofounding a startup in e-commerce. In earlier roles, he has developed many enterprise and consumer based web/mobile applications and has also been a speaker at Ruby Conferences in India and the USA. He never misses a chance to play tennis and go hiking.
He has worked with Tata Consultancy Services and McKinsey & Company as a software developer and an architect.
He has contributed in books on Rhomobile and RubyMotion by Packt earlier. Danillo Corvalan is a software engineer who is passionate about software patterns and practices. He has a keen interest in the rapidly changing world of software development. He is quite insistent about the need of fast and reliable frameworks. He is originally from Brazil, now living in Amsterdam, the Netherlands. He loves biking a lot.
In Brazil, he worked on applications for the general public and lawyers, at the Court of Justice in his hometown city, Cuiaba/MT. Then, he moved to Florianopolis/SC, and worked at Bravi Software for developing hybrid and responsive web apps for education. Now, in Amsterdam, he is working at and helping to develop live multiscreen and responsive apps. From the web client-side perspective, in general, he has been in touch with technologies, such as vanilla JavaScript, jQuery, Backbone, and ReactJS.
For the past 5 years, Danillo has also worked with open source platforms and JavaScript on the server side (Node.js). He has played with React Native in order to develop native mobile applications with ReactJS.
  • Cover
  • Copyright
  • Credits
  • About the Authors
  • Acknowledgments
  • About the Reviewer
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started with ReactJS
  • Introducing ReactJS
  • Who uses ReactJS?
  • Downloading ReactJS
  • Installing ReactJS with NPM
  • Installing ReactJS with Bower
  • Tools
  • Text editors
  • Chrome extension
  • Trying ReactJS
  • Configuring ReactJS in a web page
  • Creating your first React component
  • Configuring JSX
  • Serving files through the web server
  • Creating a React component with the JSX syntax
  • Summary
  • Chapter 2: Exploring JSX and the ReactJS Anatomy
  • What is JSX?
  • Why JSX?
  • Tools for transforming JSX
  • The ReactJS anatomy
  • Creating a component
  • Rendering a component
  • Maximum number of roots
  • Children components
  • Supported attributes
  • Supported elements
  • HTML elements
  • SVG elements
  • Learning JSX and Gotchas
  • Expressions
  • Properties/attributes
  • Transferring properties
  • Mutating properties
  • Comments
  • Component style
  • Style
  • CSS classes
  • Summary
  • Chapter 3: Working with Properties
  • Component properties
  • Data flow with properties
  • Configuring Facebook Open-Graph API
  • What it is and how to configure it
  • Creating an app-id on the Facebook developers site
  • Open-Graph JavaScript SDK
  • Rendering data in a ReactJS component
  • Summary
  • Chapter 4: Stateful Components and Events
  • Properties versus states in ReactJS
  • Exploring the state property
  • Initializing a state
  • Setting a state
  • Replacing a state
  • A React state example using an interactive form
  • Events
  • Form events
  • Mouse events
  • Event pooling
  • Supported events
  • Summary
  • Chapter 5: Component Life cycle and Newer ECMAScript in React
  • React component lifecycle
  • Mounting category
  • Updating category
  • Unmounting category
  • Other ES (ECMAScript) versions in React
  • ES6
  • ES7
  • Summary
  • Chapter 6: Reacting with Flux
  • An overview of Flux
  • Flux versus the MVC architecture
  • Flux advantages
  • Flux components
  • Actions
  • Dispatchers
  • Stores
  • Controller-Views and Views
  • Revisiting the code
  • Summary
  • Chapter 7: Making Your Component Reusable
  • Understanding Mixins
  • Exploring Mixins by example
  • Higher-order components in Mixins
  • Validations
  • An example using the isRequired validator
  • An example using custom validator
  • The structure of component
  • Summary
  • Chapter 8: Testing React Components
  • Testing in JavaScript using Chai and Mocha
  • Testing using ReactTestUtils
  • Installing React and JSX
  • The jestTypical example of a Testsuite with Mocha, expect, ReactTestUtils and Babel
  • Testing with shallow rendering
  • Summary
  • Chapter 9: Preparing your Code for Deployment
  • An introduction to Webpack
  • Building a simple React application
  • Setting up Webpack
  • Advantages of Webpack
  • Introduction to Gulp
  • Installing Gulp and creating Gulp file
  • Summary
  • Chapter 10: What's Next
  • AJAX in React
  • React Router
  • Server-side rendering
  • ReactDOMServer
  • Isomorphic applications
  • Hot reloading
  • Redux React
  • Relay and GraphQL
  • React Native
  • References
  • Summary
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)


Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.

Download (sofort verfügbar)

28,05 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok