Book Image

Universal JavaScript with React, Node, and Redux [Video]

By : Maxime Najim
Book Image

Universal JavaScript with React, Node, and Redux [Video]

By: Maxime Najim

Overview of this book

The latest trend in web development, Isomorphic JavaScript, allows developers to overcome some of the shortcomings of single page applications by running the same code on the server as well as on the client. Leading this trend is React, which when coupled with Node, allows developers to build JavaScript apps that are much faster and more SEO-friendly than single page applications. Universal JavaScript is the latest evolution in modern web development. It allows developers to overcome some of the shortcomings of single page applications by running the application code interchangeably on the server as well as on the client. This beginner friendly video course is a solid start for building real, production ready universal React apps. The video will Takes you from a beginner to working with node.js and React on the server and the client. It covers the fundamentals of the full set of technologies that you need to know in order to become an Universal JavaScript developer. Teaches you the skills required to become competent and comfortable sharing your JavaScript application on the client and sever environments.
Table of Contents (6 chapters)
Chapter 5
React and Redux on the Server
Content Locked
Section 3
Server : Generating Initial State
In this video, we are going to run Redux on the server, dispatching asynchronous action to fetch the initial data and pulling the state out of store and pass the state along to the client. - Implement handle route method that takes two inputs: the response object and the renderProps - Invoke the action to populate the store using a static methods on the route handler/container component - Use isomorphic-fetch to call to fetch the selected user’s data