React Router Quick Start Guide, published by Packt
This is the code repository for React Router Quick Start Guide, published by Packt.
Routing in React applications made easy
React Router is the routing library for React, and it can be used in both React Web and React Native applications. This book is a simple way to get started with React Router and harness its full power for your applications.
This book covers the following exciting features:
- Create your first Route using the Route component
- Protect routes from unauthorized access by using the redirect component
- Navigate to your defined route using Link and NavLink
- Configure BrowserRouter and HashRouter using various props
- Use StaticRouter for routing in server-side rendered React applications
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
<div className="container">
<Route
path="/"
component={HomeComponent}
/>
<Route
path="/dashboard"
component={DashboardComponent}
/>
</div>
Following is what you need for this book: Copy and paste the Audience section from the EPIC.
With the following software and hardware list you can run all code files present in the book (Chapter 1-15).
Chapter | Software required | OS required |
---|---|---|
1-6 | NodeJS | Windows / Mac OSX / Linux) |
7,8 | Android Studio, XCode | Mac OSX |
Sagar Ganatra is a frontend engineer and an architect from Bangalore, India. He has more than a decade of experience in developing web and mobile applications. He specializes in architecting projects using JavaScript and frameworks such as React, Angular, and Node. His previous books include Kendo UI Cookbook and Instant Kendo UI Mobile, both published by Packt Publishing. He also writes about frontend technologies in his blog, sagarganatra (dot) com.
Click here if you have any feedback or suggestions.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.