@srejs/react
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

@srejs/react


Server rendering engine, abbreviated as srejs, is the server-side rendering engine. It provides the simplest and most flexible react and Vue lightweight server-side rendering skeleton tool for each node development framework, and supports the use in any koa framework.

download License Node

Server rendering engine 缩写为 Srejs, 即服务器端渲染引擎,为各个node开发框架提供最简单,最灵活,Vue轻量级服务端渲染骨架工具。 Srejs支持在koa中间件中使用,通过此能力我们可以对任何基于Koa的开发框架进行插件封装,比如UMajs,egg,nest,推荐使用@umajs/plugin-react-ssr提供的解决方案。

Features

  • 🚀 支持SSR和CSR模式切换
  • 🚀 数据管理支持redux,useContext+useReducer
  • 🚀 支持服务端直出Props
  • 🚀 和react-router使用
  • 🚀 自定义HTML和动态设置页面title,keyworlds,discription
  • 嵌套路由时路由组件支持getInitialProps钩子函数获取数据
  • webpack5.0

更多说明

示例

开发框架集成

Package Sidebar

Install

npm i @srejs/react

Weekly Downloads

6

Version

1.4.0

License

MIT

Unpacked Size

82.3 kB

Total Files

10

Last publish

Collaborators

  • bubblem
  • dazjean