Giter VIP home page Giter VIP logo

react-rematch-ssr's Introduction

react-rematch-ssr

前言:react-rematch-ssr是在之前搭建的react-ssr-template基础上做的优化,之前在做技术选型的时候选择了reduxredux-saga,后来觉得过于繁琐,之后了解到rematch,就用rematch做了优化,使用更简单、高效!

运行

yarn or npm install

# development
npm run dev:client
npm run dev:server

# production
npm run build
npm start

特性

  • react及store的hot reload
  • 设置title及meta
  • 路由懒加载(支持服务端渲染)
  • eslint规范代码(airbnb)
  • 内置css|stylus,支持css modules(默认启用)
  • 使用husky和lint-staged规范提交的代码
  • 异步路由跳转

主要优化

  • 状态管理由reduxredux-saga替换成rematch
  • 页面初始数据获取由react-async-bootstrapper替换成redux-connect
  • 服务端渲染cookie的携带
  • 使用husky和lint-staged规范提交的代码
  • 优化开发环境下获取服务端bundle逻辑,简化路由配置

react-rematch-ssr's People

Contributors

kim09ai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.