React renderer to build Node.js server
React-like http-server on Nodejs
Get(render) and Res.Render to render your regular React DOM Componentsreq, resstyled-componentshandler prop in Route components to use as regular controllerand many many features that should be documented...
Run this to create reactend project on your local machine
npx create-reactend my-appYou choose template (default: basic)
npx create-reactend my-app --template fakerimport 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);import cors from 'cors';
;
Shut Up And Take My Money!
} />
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)
Email me if you have any idea and you would like to be contributor [email protected]
Cheers ✨
No open issues yet, or sync has not completed.