售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜