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
Build real-world robust web applications and APIs using the modern and expressive Koa Node.js framework.
Key Features
Get up and running with Koa.js and leverage its power with node.js
Get the most out of Koa Async functions and generators
Create real time dynamic serverside apps efficiently with Koa.js
Book Description
Every developer wants to build modular and scalable web applications. Modern versions of JavaScript have made this possible in Node.js, and Koa is a Node.js framework that makes it easy. This book is the ideal introduction for JavaScript developers who want to create scalable server side
applications using Node.js and Koa.js.
The book shows you how Koa can be used to start projects from scratch, register custom and existing middleware, read requests, and send responses to users. We will explore the core concepts in Koa, such as error handling, logging, and request and response handling. We will dive into new concepts in
JavaScript development, and see how paradigms such as async/await help with modern Node.js application development.
By the end of this book, you will be building robust web applications in Koa using modern development paradigms and techniques of Node.js development.
What you will learn
Create a simple server in Node.js and Koa
Work with custom middleware in Koa
Handle errors in Koa
Create routes, handle requests, and send responses from APIs
Build views and use templates in Koa
Authenticate your application and structure it properly in Koa
Who this book is for
This book is for serverside developers and JavaScript developers who want to use Koa.js and Node.js to create fast and real time back end applications.