Home Page Icon
Home Page
Table of Contents for
Contributors
Close
Contributors
by Andrea Chiarelli
Beginning React
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
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
PacktPub.com
Next
Next Chapter
About the Author
Contributors
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset