万本电子书0元读

万本电子书0元读

顶部广告

React Components电子书

售       价:¥

7人正在读 | 0人评论 9.8

作       者:Christopher Pitt

出  版  社:Packt Publishing

出版时间:2016-04-01

字       数:61.5万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Explore the power of React components for cutting-edge web development About This Book Learn to build better websites by creating a variety of different components in React Conceptualize the design and build maintainable web apps with the help of components A fast-paced guide to help you learn about component-based development in React Who This Book Is For This book is ideal for developers who are familiar with the basics of React and are looking for a guide to building a wide range of components as well as develop component-driven UIs. What You Will Learn How to structure an app into components Working with nested components Work with nested components Set up communication across components Style the existing components Work with Material Design as a component Render components on the server Make the best of design patterns Make the app pluggable In Detail The reader will learn how to use React and its component-based architecture in order to develop modern user interfaces. A new holistic way of thinking about UI development will establish throughout this book and the reader will discover the power of React components with many examples. After reading the book and following the example application, the reader has built a small to a mid-size application with React using a component based UI architecture. The book will take the reader through a journey to discover the benefits of component-based user interfaces over the classical MVC architecture. Throughout the book, the reader will develop a wide range of components and then bring them together to build a component-based UI. By the end of this book, readers would have learned several techniques to build powerful components and how the component-based development is beneficial over regular web development. Style and approach This book is a compact, example-driven guide that provides a step-by-step approach.
目录展开

React Components

Table of Contents

React Components

Credits

About the Author

About the Reviewer

www.PacktPub.com

eBooks, discount offers, and more

Why subscribe?

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Thinking in Components

Why components?

Using modern JavaScript

Compiling modern JavaScript

Debugging in the browser

Managing common tasks

Testing in JSBin

Summary

2. Working with Properties and State

Nesting components

Shared component actions

Component life cycle methods

Summary

3. Saving and Communicating Data

Validating properties

Storing cookies

Using local storage

Using event emitters

Summary

4. Styling and Animating Components

Adding new pages

Adding styles to components

Changing and reverting

Animating new components

Working with CSS transitions

Organizing styles with Sass

Alternatives

CSS modules

React style

Summary

5. Going Material!

Understanding material design

Surfaces

Interactions

Motion

Typography and iconography

Keeping your head above water

Material design lite

Creating a login page

Updating page admin

Alternative resources

Font Squirrel

Material UI

Summary

6. Changing Views

Location, location, location!

A bit of history

Using browser history

Using a router

Creating public pages

Summary

7. Rendering on the Server

Rendering components to strings

Creating a simple server

Creating a server backend

Communicating through Ajax requests

Communicating through web sockets

Structuring server-side applications

Summary

8. React Design Patterns

Where we are

Flux

Benefits of using Flux

Redux

Using context

Benefits of Redux

Summary

9. Thinking of Plugins

Dependency injection and service location

Dependency injection

Factories and service locators

Fold

Why this matters

Extending with callbacks

Stores, reducers, and components

Summary

10. Testing Components

Eat your vegetables

Design by testing

Documentation by testing

Sleep by testing

Types of tests

Unit tests

Functional tests

Testing with assertions

Testing for immutability and idempotence

Connecting to Travis

End-to-end testing

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部