Cargando…

React 16 Tooling : Master essential cutting-edge tools, such as create-react-app, Jest, and Flow.

React 16 Tooling covers the most important tools, utilities, and libraries that every React developer needs to know - in detail. These will make your development life simpler and happier, enabling you to create better and more performant apps.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Boduch, Adam
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2018.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Creating a Personalized React Development Ecosystem; What's included with React; Components that compare render trees; The DOM render target; Introducing tooling?; Ancillary tasks outside of React; A construction site analogy; React tooling covered in this book; JSX needs to be compiled to JavaScript; Newer JavaScript language features need to be transpiled; Hot module loading to enable application development; Running unit tests automatically; Thinking about type safety; Linting for code quality.
  • Isolating component development environmentsProviding a browser-based debugging environment; Deploying React applications; Choosing the right tools; Essential tools; Optional tools; Summary; Chapter 2: Efficiently Bootstrapping React Applications with Create React App; Installing Create React App; Creating your first app; Specifying a project name; Automatic dependency handling; Directory structure; Top-level files; Static assets; Source code; Summary; Chapter 3: Development Mode and Mastering Hot Reloading; Starting the development server; Webpack configuration; Entry points; Build output.
  • Resolving input filesLoading and compiling files; Configuring plugins; Hot reloading; Hot component reloading in action; Ejecting from Create React App; Summary; Chapter 4: Optimizing Test-Driven React Development; The driving philosophy of Jest; Mock everything except the application code; Isolate tests and run in parallel; Tests should feel natural; Running tests; Running tests using react-scripts; Running tests using standalone Jest; Writing Jest tests; Organizing tests using suites; Basic assertions; Basic equality; Approximate equality; Value equality; Values in collections.
  • Working with mocksAsynchronous assertions; React component snapshots; Unit test coverage; Summary; Chapter 5: Streamlining Development and Refactoring with Type-Safe React Components; What does type-safety solve?; Replacing guesswork with assurance; Removing runtime checks; Obvious low-severity bugs; Installing and initializing Flow; Validating component properties and state; Primitive property values; Object property values; Validating component state; Function property values; Enforcing child component types; Parents with specific children types; Parents with one child.
  • Parents with an optional childParents with primitive child values; Validating event handler functions; Bringing Flow into the development server; Bringing Flow into your editor; Summary; Chapter 6: Enforcing Code Quality to Improve Maintainability; Installing and configuring ESLint; Building on Airbnb standards; Adding React plugins to ESLint; Using ESLint with create-react-app; Using ESLint in a code editor; Automating code formatting with Prettier; Summary; Chapter 7: Isolating Components with Storybook; The need for isolated component development; Installing and configuring Storybook.