React Router Quick Start Guide

Routing in React applications made easy

Nonfiction, Computers, Programming, Programming Languages, CGI, JavaScript, Perl, VBScript, Internet
Cover of the book React Router Quick Start Guide by Sagar Ganatra, Packt Publishing
View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart
Author: Sagar Ganatra ISBN: 9781789532838
Publisher: Packt Publishing Publication: September 29, 2018
Imprint: Packt Publishing Language: English
Author: Sagar Ganatra
ISBN: 9781789532838
Publisher: Packt Publishing
Publication: September 29, 2018
Imprint: Packt Publishing
Language: English

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

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 Description

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.

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 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 for

This book is for JavaScript developers who have basic knowledge of React and who want to harness the power and flexibility of React Router

View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart

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

Key Features

Book Description

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.

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 learn

Who this book is for

This book is for JavaScript developers who have basic knowledge of React and who want to harness the power and flexibility of React Router

More books from Packt Publishing

Cover of the book Hadoop MapReduce v2 Cookbook - Second Edition by Sagar Ganatra
Cover of the book Practical AWS Networking by Sagar Ganatra
Cover of the book Mastering Spring 5.0 by Sagar Ganatra
Cover of the book Intelligent Mobile Projects with TensorFlow by Sagar Ganatra
Cover of the book ServiceNow Cookbook by Sagar Ganatra
Cover of the book Instant Highcharts by Sagar Ganatra
Cover of the book Python Reinforcement Learning Projects by Sagar Ganatra
Cover of the book PrimeFaces Cookbook - Second Edition by Sagar Ganatra
Cover of the book Android: Game Programming by Sagar Ganatra
Cover of the book Native Docker Clustering with Swarm by Sagar Ganatra
Cover of the book Aptana Studio Beginner's Guide by Sagar Ganatra
Cover of the book Microservices Development Cookbook by Sagar Ganatra
Cover of the book LibGDX Game Development By Example by Sagar Ganatra
Cover of the book Scala Test-Driven Development by Sagar Ganatra
Cover of the book CryENGINE Game Programming with C++, C#, and Lua by Sagar Ganatra
We use our own "cookies" and third party cookies to improve services and to see statistical information. By using this website, you agree to our Privacy Policy