All Projects → Alex-ray → V2 Universal Js Hmr Ssr React Redux

Alex-ray / V2 Universal Js Hmr Ssr React Redux

⚡ (V2) Universal JS - Server Side Rendering, Code Splitting and Hot Module Reloading ⚡

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to V2 Universal Js Hmr Ssr React Redux

isomorphic-react-redux-saga-ssr
Isomorphic, React, Redux, Saga, Server Side rendering, Hot Module Reloading, Ducks, Code Splitting
Stars: ✭ 19 (-87.07%)
Mutual labels:  react-redux, code-splitting, webpack2, server-side-rendering, react-router-v4
React Router Server
Server Side Rendering library for React Router v4.
Stars: ✭ 443 (+201.36%)
Mutual labels:  webpack2, code-splitting, react-router, server-side-rendering
Universal React Redux
🧐 A sensible universal starter kit for React + Redux
Stars: ✭ 112 (-23.81%)
Mutual labels:  hot-reload, react-router, server-side-rendering, react-router-v4
Redux React Session
🔑 Simple Session API storage for Redux and React
Stars: ✭ 140 (-4.76%)
Mutual labels:  react-router, server-side-rendering, react-router-v4
universal-react-redux-typescript-starter-kit
A minimal starter kit with React, Redux, server side rendering, hot reloading, and Webpack 2. 100% TypeScript.
Stars: ✭ 12 (-91.84%)
Mutual labels:  webpack2, server-side-rendering, react-router-v4
laravel-react-boilerplate
Laravel React Boilerplate with Ant Design, Route-Level Code Splitting, Redux, Sanctum Auth
Stars: ✭ 49 (-66.67%)
Mutual labels:  react-router, react-redux, code-splitting
Modern-Web-App
React PWA with SSR and Code splitting
Stars: ✭ 45 (-69.39%)
Mutual labels:  code-splitting, server-side-rendering, react-router-v4
Webpack React Router Redux Es6
webpack2+react+react-router+react-redux+ES6版本的CNode社区
Stars: ✭ 255 (+73.47%)
Mutual labels:  webpack2, react-router, react-redux
React Antd
基于react + redux + immutable + less + ES6/7 + webpack2.0 + fetch + react-router + antd实现的SPA后台管理系统模板
Stars: ✭ 321 (+118.37%)
Mutual labels:  webpack2, react-router, react-redux
Loadable Components
The recommended Code Splitting library for React ✂️✨
Stars: ✭ 6,194 (+4113.61%)
Mutual labels:  code-splitting, react-router, server-side-rendering
Create React App Redux
React Router, Redux, Redux Thunk & Create React App boilerplate
Stars: ✭ 885 (+502.04%)
Mutual labels:  react-router, react-redux, react-router-v4
react-webpack2-skeleton
Get started with React with Webpack2, React-Router, Redux, Code Splitting and Server Rendering
Stars: ✭ 59 (-59.86%)
Mutual labels:  react-router, code-splitting, webpack2
react-antd
基于react + redux + immutable + less + ES6/7 + webpack2.0 + fetch + react-router + antd实现的SPA后台管理系统模板
Stars: ✭ 320 (+117.69%)
Mutual labels:  react-router, react-redux, webpack2
rgxp
Regular Expression Collection (ReactJS, Redux, React Router, Recompose, NodeJS, Express)
Stars: ✭ 62 (-57.82%)
Mutual labels:  react-router, react-redux, react-router-v4
Hapi React Hot Loader Example
Simple React Hot Loading example with Hapi Server-side rendering
Stars: ✭ 44 (-70.07%)
Mutual labels:  code-splitting, server-side-rendering, react-redux
React Redux Universal Boilerplate
An Universal ReactJS/Redux Boilerplate
Stars: ✭ 165 (+12.24%)
Mutual labels:  code-splitting, hot-reload, react-router
React Sight
Visualization tool for React, with support for Fiber, Router (v4), and Redux
Stars: ✭ 2,716 (+1747.62%)
Mutual labels:  react-router, react-redux, react-router-v4
Vueniverse
Full stack, user based, PWA, Vue template.
Stars: ✭ 339 (+130.61%)
Mutual labels:  webpack2, code-splitting, hot-reload
Typescript Hapi React Hot Loader Example
Simple TypeScript React Hot Loading example with Hapi Server-side rendering
Stars: ✭ 44 (-70.07%)
Mutual labels:  code-splitting, server-side-rendering, react-redux
Simple Universal React Redux
The simplest possible Async Universal React & Redux Boilerplate app, that works on both Mac and Windows
Stars: ✭ 58 (-60.54%)
Mutual labels:  react-router, react-redux, react-router-v4

⚡ (V2) Universal JS - Server Side Rendering, Code Splitting and Hot Module Reloading ⚡

💭 What is it?

Universal JS: - JavaScript that can run on both the server and client (or any other JS platform for that matter) !

Hot Module Reloading: - Replaces modules that have been changed in real time while preserving the state.

Server Side Rendering: - Renders Pages on the initial for fast page loads and search engine optimization

Code Splitting: - Split code into bundles so that code is asynchronously loaded by the client.

⚙ How?

The Basic setup goes like this...

An express server handles a request, renders the page on the server, then sends it back to the client. The code is bundled into chunks on build time which are requested by the client when needed for that route.

When in development mode, the express server handles a request and uses the webpack.config.development.js configuration as middleware to listen for file changes, build, then and push them to the client.


This project is an updated version of this project. With the biggest updates being migrations to React Router 4 and Hot Module Reloading 3

The main goal of this project remains the same; A simple and no BS approach to a Universal JS, Server Side Rendering, Code Splitting and Hot Module Reloading using the following technologies:

  • React
  • Redux
  • React Router 4
  • Webpack 2
  • Hot Module Reloader 3
  • Babel
  • Express
  • webpack-dev-middleware
  • webpack-hot-middleware
  • immutablejs

🛠 Setup

First install the dependencies in the root directory of this project run. npm install

🤖 Running

For Development run npm run development

This will start a development server on localhost:8080 that utilizes hot module reloading for both React components and Redux reducers.

For Production run npm run build && npm run production.

This will build all your assets and write them to a /build folder in the root directory of this project. The script will then start an express server on localhost:8080 that will utilize server side rendering and route based code splitting.

hmr-ssr

🗒 Notes

Hot Module Reloading does not work with System.import, as such there are two route sources.

  • The first one src/universal/routes/static.js is for static routes (no code splitting) that is for the development environment to work nicely with React Hot Loader 3
  • The second route source src/universal/routes/async.js is for asynchronous routes (Code splitting using System.import).
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].