React design patterns and best practices : design, build and deploy production-ready web applications using standard industry practices /
We will be taking a complete journey through the most valuable design patterns in React, this book demonstrates how to apply design patterns and best practices in real-life situations, whether that's for new or already existing projects. It will help you to make your applications more flexible,...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2019.
|
Edición: | Second edition. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Title Page; About Packt; Copyright and Credits; Contributors; Table of Contents; Preface; Section 1: Hello React!; Chapter 1: Taking Your First Steps with React; Declarative programming; React elements; Unlearning everything; Common misconceptions; Summary; Chapter 2: Clean Up Your Code; JSX; Babel 7; Hello, World!; DOM elements and React components; Props; Children; Differences with HTML; Attributes; Style; Root; Spaces; Boolean attributes; Spread attributes; JavaScript templating; Common patterns; Multi-line; Multi-properties; Conditionals; Loops; Control statements; Sub-rendering
- Code styleEditorConfig; Configuring EditorConfig; ESLint; Installation; Configuration; Git hooks; React plugin; Airbnb React/JSX style guide; The basics of functional programming; First-class objects; Purity; Immutability; Currying; Composition; FP and user interfaces; Summary; Section 2: How React works; Chapter 3: Creating Truly Reusable Components; Creating classes; The createClass factory; Extending React.Component; The main differences; Props; State; Autobinding; Stateless components; Props and context; The this keyword; State; Life cycle ; Refs and event handlers; Optimization
- Layout componentsThe state; External libraries; How it works; Asynchronous; Using the state; Derivables; The render method; React hooks; Prop types; React Docgen; Reusable components; Fragments; Summary; Chapter 4: Compose All the Things; Communication between components; Children; The container and presentational pattern; Mixins; Higher order components; Recompose; Context; FunctionAsChild; Summary; Chapter 5: Proper Data Fetching; Data flow; Child-parent communication (callbacks); Common parent; Data fetching; React-refetch; Context API; Summary; Chapter 6: Write Code for the Browser; Forms
- Uncontrolled componentsControlled components; JSON schema; Handling events; Refs; Animations; React motion; Scalable Vector Graphics; Summary; Section 3: Performance, Improvements and Production!; Chapter 7: Make Your Components Look Beautiful; CSS in JavaScript; Inline styles; Radium; CSS modules; Webpack 4; Setting up a project; Locally scoped CSS; Atomic CSS modules; React CSS modules; Styled components; Summary; Chapter 8: Server-Side Rendering for Fun and Profit; Universal applications; Reasons to implement SSR; SEO; A common code base; Better performance
- Don't underestimate the complexityA basic example; A data fetching example; Next.js; Summary; Chapter 9: Improve the Performance of Your Applications; Reconciliation; Keys; Optimization techniques; shouldComponentUpdate; Stateless functional components; Common solutions; Why did you update?; Creating functions inside the render method; Constants props; Refactoring and good design; Tools and libraries; Immutability; Babel plugins; Summary; Chapter 10: About Testing and Debugging; The benefits of testing; Painless JavaScript testing with Jest; Testing events; React DevTools; Redux DevTools