Contents
About This E-Book
EPUB is an open, industry-standard format for e-books. However, support for EPUB and its many features varies across reading devices and applications. Use your device or app settings to customize the presentation to your liking. Settings that you can customize often include font, font size, single or double column, landscape or portrait mode, and figures that you can click or tap to enlarge. For additional information about the settings and features on your reading device or app, visit the device manufacturers Web site.
Many titles include programming code or configuration examples. To optimize the presentation of these elements, view the e-book in single-column, landscape mode and adjust the font size to the smallest setting. In addition to presenting code and configurations in the reflowable text format, we have included images of the code that mimic the presentation found in the print book; therefore, where the reflowable format may compromise the presentation of the code listing, you will see a Click here to view code image link. Click the link to view the print-fidelity code image. To return to the previous page viewed, click the Back button on your device or app.
Accessing the Free Web Edition
Your purchase of this book in any format includes access to the corresponding Web Edition, which provides several special online-only features:
The complete text of the book
Updates and corrections as they become available
The Web Edition can be viewed on all types of computers and mobile devices with any modern web browser that supports HTML5.
To get access to the Learning React Web Edition, all you need to do is register this book:
1. Go to www.informit.com/register.
2. Sign in or create a new account.
3. Enter the ISBN: 9780134843551.
4. Answer the questions as proof of purchase.
5. The Web Edition will appear under the Digital Purchases tab on your Account page. Click the Launch link to access the product.
To my dad!
(Who always believed in meeven if what I was often doing made no sense to him...or to me for that matter!)
About the Author
Kirupa Chinnathambi has spent most of his life trying to teach others to love web development as much as he does.
In 1999, before blogging was even a word, he started posting tutorials on kirupa.com. In the years since then, he has written hundreds of articles, penned a few books (none as good as this one, of course!), and recorded a bunch of videos you can find on YouTube. When he isnt writing or talking about web development, he spends his waking hours helping make the web more awesome as a Program Manager at Microsoft. In his nonwaking hours, he is probably sleepingor writing about himself in the third person.
You can find him on Twitter (). Feel free to contact him anytime.
Acknowledgments
First, none of this would be possible without the support and encouragement of my awesome wife, Meena. If she hadnt put her goals on hold to allow me to spend six months designing, writing, and rewriting everything you see here, writing this book would have been a distant dream.
Next, Id like to thank my parents for always encouraging me to aimlessly wander and enjoy free time doing what I likesuch as teaching complete strangers via the Internet in the late 1990s how to do cool things with programming. I wouldnt be half the rugged indoorsman/scholar/warrior I am today without them both .
On the publishing side, writing the words you see here is the easy part. Getting the book into your hands is an amazingly complex process. The more I learn about all the moving pieces involved, the more impressed I am with all the individuals who work tirelessly behind the scenes to keep this amazing machinery running. To everyone at Pearson who made this possible, thank you! There are a few people Id like to explicitly call out, though. First, Id like to thank Mark Taber for continuing to give me opportunities to work together, Chris Zahn for patiently addressing my numerous questions and concerns, Krista Hansing for turning my version of English into something humanly understandable, and Loretta Yates for helping make the connections a long time ago that made all of this happen. The technical content of this book has been reviewed in great detail by my long-time friends and online collaborators Kyle Murray (a.k.a. Krilnon) and Trevor McCauley (a.k.a. senocular). I cant thank them enough for their thorough (and, frequently, humorous!) feedback.
Learning React
Second Edition
Kirupa Chinnathambi
Learning React, Second Edition
Copyright 2018 by Pearson Education, Inc.
All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Nor is any liability assumed for damages resulting from the use of the information contained herein.
ISBN-13: 978-0-13-484355-1
ISBN-10: 0-13-484355-X
Library of Congress Control Number: 2017957370
1 18
Trademarks
All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Pearson cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark.
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an as is basis. The author and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book.
Special Sales
For information about buying this title in bulk quantities, or for special sales opportunities (which may include electronic versions; custom cover designs; and content particular to your business, training goals, marketing focus, or branding interests), please contact our corporate sales department at or (800) 382-3419.
For government sales inquiries, please contact .
For questions about sales outside the U.S., please contact .
Editor
Mark Taber
Managing Editor
Sandra Schroeder