售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Copyright and Credits
Beginning React
Packt Upsell
Why Subscribe?
PacktPub.com
Contributors
About the Author
About the Reviewer
Packt Is Searching for Authors like You
Preface
Who This Book Is For
What This Book Covers
To Get the Most out of This Book
Download the Example Code Files
Download the Color Images
Conventions Used
Get in Touch
Reviews
Introducing React and UI Design
What is React?
How to Set up a React-Based Application
Installing create-react-app
Creating Your First React Application
Activity: Creating an Application with create-react-app
Exploring the Generated Content
The create-react-app Commands
The npm start Command
Changing File Content and Viewing the Result
Activity: Starting and Changing the Application
The npm test Command
The npm run build Command
The npm run eject Command
How to Design a UI
Everything Is a Component
Decompose a User Interface
Container and Presentational Components
Activity: Detecting Components in a Web User Interface
Summary
Creating Components
Definition of a Component
Building Our First React Component
Managing Styles
Adding CSS
Activity: Defining a Shopping Cart
Using JSX
Activity: Translating HTML into JSX
Composing Components
Combining Components
Activity: Defining a Composed Cart
Data Propagation
Activity: Creating a Cart Item Component
Managing the Internal State
Activity: Adding State Management to the Cart Component
Summary
Managing User Interactivity
Managing User Interaction
HTML Events versus React Events
Event Handlers and the this Keyword
Changing the State
Activity: Adding Items to the Shopping Cart
Component Lifecycle Events
Activity: Showing the Quantity of Items Added to the Cart
Managing Routing
Installing React Router
Using the Router
Defining Views
Some Notes About the Route Component
Nested Views
Path Parameters
Activity: Adding a View About Shipping Methods
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜