
React Router Quick Start Guide
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Key Features
Create nested routes and complex workflows for your applications
Learn Routing in server-side rendered applications and in Native mobile applications
Understand how Redux bindings for React-Router works using the connected-react-router library
Book DescriptionReact 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. The book starts with an introduction to React Router and teaches you how to create your first route using the React component. You will then learn about configuring your routes, passing parameters, and creating nested routes. You will be introduced to various components in React-Router and learn different configuration options available for these components. You will then see how to use the Redirect and Switch components. For even greater ?exibility, you will learn about BrowserRouter, HashRouter, NativeRouter, and StaticRouter. By the end of the book, you will have set up a project with React Router and make routing configuration work in a server-side rendered React application, a mobile application built with React Native and also understand how Redux and React-Router can be used in the same application.What you will learn
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
Implement routing in a React Native app using react-router-native
Using connected-react-router library with React-Router for better state management
Who this book is forThis book is for JavaScript developers who have basic knowledge of React and who want to harness the power and flexibility of React Router
More details
Other editions
Additional editions

Person
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.
Content
Introduction to React Router 4 and Creating Your First Route
Configuring Routes - Using Various Options in the Route Component
Using the Link and NavLink Components to Navigate to a Route
Using the Redirect and Switch Components
Understanding the Core Router, and Configuring the BrowserRouter and HashRouter components
Using StaticRouter in a Server-Side Rendered React Application
Using NativeRouter in a React Native Application
Redux Bindings with connected-react-router
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.