百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

reactend-express

> 前端框架
开源

React 渲染器用于构建 Node.js 服务器

398 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

React 渲染器用于构建 Node.js 服务器

Reactend / Express

React-like http-server on Nodejs

Playground on repl.it

Reactend Template

What's that?

  • Node.js http-server based on React-Components
  • Express.js inside
  • Get, Post, Delete and etc. components to use router method
  • Get(render) and Res.Render to render your regular React DOM Components
  • useContext(ReqResContext) hook to access req, res
  • Support styled-components
  • Built-in logger (morgan)
  • Middleware component in Router and its Routes
  • handler prop in Route components to use as regular controller

and many many features that should be documented...

Get started

Run this to create reactend project on your local machine

bash
npx create-reactend my-app

You choose template (default: basic)

bash
npx create-reactend my-app --template faker

Code Example

javascript
import React from 'react';
import { resolve } from 'path';

import { registerApp, App, Static, Router, Get, Post, Res, Logger } from '@reactend/express';

const ExpressApp = () => (
  
    
    
    
      
        
        
      
      
      
         console.log(req.originalUrl)}
        />
      
      
    
  
);

registerApp(ExpressApp);

You can use this way too

javascript
import cors from 'cors';
;
javascript

  

  
  

  

   
Shut Up And Take My Money!
} />

  

Components

This minor description for now (Docs is on the way)

`` - App Instance (props: port)

`` - Static route (props: publicPath, path, options)

`` - Router-Provider (props: path)

, and ... - Route component (props: path, content, handler, status)

`` - Middleware (props: handler)

`` - morgan logger (props: mode, disabled)

`` - Response components

`` - Render (props: component)

`` - Response send (props: json, text, contentType)

`` - Response Status (props: statusCode)

`` - Response Send File (props: path, options, onError)

`` - Redirect (props: path, statusCode)

`` - Redirect (props: length, locale, map)


Contact me

Email me if you have any idea and you would like to be contributor [email protected]

Cheers ✨

Issues· 2 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptnodejsnodejs-serverreact

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架