Jump to ratings and reviews
Rate this book

React Router Quick Start Guide: Routing in React applications made easy

Rate this book
Learn how you can implement routing in a React Web/Native application using React-Router library

Key FeaturesCreate nested routes and complex workflows for your applicationsLearn Routing in server-side rendered applications and in Native mobile applicationsUnderstand how Redux bindings for React-Router works using the connected-react-router libraryBook 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 flexibility, 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 learnCreate your first Route using the Route componentProtect routes from unauthorized access by using the redirect componentNavigate to your defined route using Link and NavLinkConfigure BrowserRouter and HashRouter using various propsUse StaticRouter for routing in server-side rendered React applicationsImplement routing in a React Native app using react-router-nativeUsing connected-react-router library with React-Router for better state managementWho 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

Table of ContentsIntroduction to React Router 4 and Creating Your First RouteConfiguring Routes - Using Various Options in the Route ComponentUsing the Link and NavLink Components to Navigate to a RouteUsing the Redirect and Switch ComponentsUnderstanding the Core Router, and Configuring the BrowserRouter and HashRouter componentsUsing StaticRouter in a Server-Side Rendered React ApplicationUsing NativeRouter in a React Native ApplicationRedux Bindings with connected-react-router

158 pages, Kindle Edition

Published September 29, 2018

1 person is currently reading
1 person want to read

About the author

Sagar Ganatra

14 books

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
3 (60%)
4 stars
2 (40%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.